mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-20 22:25:22 +02:00
Minimize differences between original dmd source and ldc1.
Mainly affects formatting but I also found some code differences.
This commit is contained in:
@@ -484,7 +484,7 @@ Initializer *ArrayInitializer::semantic(Scope *sc, Type *t, int needInterpret)
|
||||
}
|
||||
|
||||
if ((unsigned long) dim * t->nextOf()->size() >= amax)
|
||||
{ error(loc, "array dimension %u exceeds max of %ju", dim, amax / t->nextOf()->size());
|
||||
{ error(loc, "array dimension %u exceeds max of %u", dim, amax / t->nextOf()->size());
|
||||
goto Lerr;
|
||||
}
|
||||
return this;
|
||||
@@ -540,6 +540,7 @@ Expression *ArrayInitializer::toExpression()
|
||||
|
||||
elements = new Expressions();
|
||||
elements->setDim(edim);
|
||||
elements->zero();
|
||||
for (size_t i = 0, j = 0; i < value.dim; i++, j++)
|
||||
{
|
||||
if (index[i])
|
||||
|
||||
Reference in New Issue
Block a user