瀏覽代碼

Fixed error for incompatible types.

woollybah 8 年之前
父節點
當前提交
546fb9fb50
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)) {
-		brl_blitz_ArrayBoundsError();
+		brl_blitz_RuntimeError(bbStringFromCString("Incompatible array element types for copy"));
 	}
 	
 	if (srcPos + length > srcArr->scales[0]) {