comparison dmd/expression/Util.d @ 191:52188e7e3fb5

Fixed deprecated features, now compiles with DMD2.058 Also changed Array allocation policy: Now doesn't reallocate but malloc's, followed by a memcpy (no free). (this fixes a crash while compiling druntime. Same bug in dmd)
author korDen@korDen-pc
date Sun, 25 Mar 2012 03:11:12 +0400
parents cd48cb899aee
children
comparison
equal deleted inserted replaced
190:80660782bffe 191:52188e7e3fb5
1283 1283
1284 case BUILTINfabs: 1284 case BUILTINfabs:
1285 if (arg0.op == TOKfloat64) 1285 if (arg0.op == TOKfloat64)
1286 e = new RealExp(Loc(0), fabsl(arg0.toReal()), arg0.type); 1286 e = new RealExp(Loc(0), fabsl(arg0.toReal()), arg0.type);
1287 break; 1287 break;
1288
1289 default:
1290 assert(false);
1288 } 1291 }
1289 return e; 1292 return e;
1290 } 1293 }
1291 1294
1292 Expression fromConstInitializer(int result, Expression e1) 1295 Expression fromConstInitializer(int result, Expression e1)