Fix error with assignin long numbers to Integer
This commit is contained in:
@ -62,7 +62,8 @@ bool resizeArray(T)(shared Allocator allocator,
|
||||
{
|
||||
return false;
|
||||
}
|
||||
array = cast(T[]) buf;
|
||||
// Casting from void[] is unsafe, but we know we cast to the original type
|
||||
array = () @trusted { return cast(T[]) buf; }();
|
||||
if (oldLength < length)
|
||||
{
|
||||
array[oldLength .. $].uninitializedFill(init);
|
||||
|
Reference in New Issue
Block a user