comparison dmd/backend/iasm.d @ 113:3482c73a991b

More cleanup for arrays
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Tue, 31 Aug 2010 23:57:32 +0100
parents f95140b40251
children e28b18c23469
comparison
equal deleted inserted replaced
112:3f02152c5e68 113:3482c73a991b
3432 size_t index = o2.disp; 3432 size_t index = o2.disp;
3433 if (index >= tup.objects.dim) 3433 if (index >= tup.objects.dim)
3434 error(asmstate.loc, "tuple index %u exceeds %u", index, tup.objects.dim); 3434 error(asmstate.loc, "tuple index %u exceeds %u", index, tup.objects.dim);
3435 else 3435 else
3436 { 3436 {
3437 Object o = cast(Object)tup.objects.data[index]; 3437 Object o = tup.objects[index];
3438 if (auto d = cast(Dsymbol)o) 3438 if (auto d = cast(Dsymbol)o)
3439 { 3439 {
3440 o1.s = d; 3440 o1.s = d;
3441 return o1; 3441 return o1;
3442 } 3442 }