Fix COPY string array
This commit is contained in:
@@ -1994,17 +1994,19 @@ class BuiltinFunction
|
|||||||
throw new TypeMismatch("COPY", sourceArrayIndex + 2);
|
throw new TypeMismatch("COPY", sourceArrayIndex + 2);
|
||||||
len = args[sourceArrayIndex + 1].castInteger;
|
len = args[sourceArrayIndex + 1].castInteger;
|
||||||
}
|
}
|
||||||
|
if (src.type == ValueType.StringArray && dst.type == ValueType.StringArray)
|
||||||
|
{
|
||||||
|
for(int i = 0; i < len; i++)
|
||||||
|
{
|
||||||
|
dst.stringArray.array[i + dstoffset] = src.stringArray.array[i + srcoffset].dup;
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for(int i = 0; i < len; i++)
|
for(int i = 0; i < len; i++)
|
||||||
{
|
{
|
||||||
dst[i + dstoffset] = src[i + srcoffset];
|
dst[i + dstoffset] = src[i + srcoffset];
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
|
||||||
for(int i = 0; i < len; i++)
|
|
||||||
{
|
|
||||||
dst[i + dstoffset] = src[i + srcoffset];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@BasicName("LOAD")
|
@BasicName("LOAD")
|
||||||
|
|||||||
Reference in New Issue
Block a user