Browse Source

Fixed error for incompatible types.

woollybah 8 years ago
parent
commit
546fb9fb50
1 changed files with 1 additions and 1 deletions
  1. 1 1
      blitz.mod/blitz_array.c

+ 1 - 1
blitz.mod/blitz_array.c

@@ -290,7 +290,7 @@ void bbArrayCopy(BBArray * srcArr, int srcPos, BBArray * dstArr, int dstPos, int
 	}
 	}
 	
 	
 	if (strcmp(srcArr->type, dstArr->type)) {
 	if (strcmp(srcArr->type, dstArr->type)) {
-		brl_blitz_ArrayBoundsError();
+		brl_blitz_RuntimeError(bbStringFromCString("Incompatible array element types for copy"));
 	}
 	}
 	
 	
 	if (srcPos + length > srcArr->scales[0]) {
 	if (srcPos + length > srcArr->scales[0]) {