ソースを参照

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]) {