Mercurial > projects > ldc
diff dmd/optimize.c @ 1103:b30fe7e1dbb9
- Updated to DMD frontend 1.041.
- Removed dmd/inifile.c , it's not under a free license, replaced with libconfig based config file.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Thu, 12 Mar 2009 20:37:27 +0100 |
parents | c519caae3181 |
children | ab186e535e72 |
line wrap: on
line diff
--- a/dmd/optimize.c Thu Mar 12 14:08:57 2009 +0100 +++ b/dmd/optimize.c Thu Mar 12 20:37:27 2009 +0100 @@ -234,7 +234,7 @@ TypeSArray *ts = (TypeSArray *)ve->type; integer_t dim = ts->dim->toInteger(); if (index < 0 || index >= dim) - error("array index %lld is out of bounds [0..%lld]", index, dim); + error("array index %jd is out of bounds [0..%jd]", index, dim); e = new SymOffExp(loc, ve->var, index * ts->next->size()); e->type = type; return e; @@ -421,8 +421,7 @@ integer_t i2 = e2->toInteger(); d_uns64 sz = e1->type->size() * 8; if (i2 < 0 || i2 > sz) - { - error("shift assign by %lld is outside the range 0..%"PRIuSIZE, i2, sz); + { error("shift assign by %jd is outside the range 0..%zu", i2, sz); e2 = new IntegerExp(0); } } @@ -517,8 +516,7 @@ integer_t i2 = e->e2->toInteger(); d_uns64 sz = e->e1->type->size() * 8; if (i2 < 0 || i2 > sz) - { - error("shift by %lld is outside the range 0..%"PRIuSIZE, i2, sz); + { e->error("shift by %jd is outside the range 0..%zu", i2, sz); e->e2 = new IntegerExp(0); } if (e->e1->isConst() == 1)