Fix Array(T).length

This commit is contained in:
otya128 committed 2016-12-18 17:08:20 +09:00
1 parent e4d172001b
commit 462713ca22
1 file changed
+4
+4
View File
@@ -458,6 +458,10 @@ class Array(T)
throw new TypeMismatch();
}
array.length = size;
static if (is(T == double))
{
array[array.length - size..$] = 0;
}
dim[0] = size;
}
void append(Array!T input)