comparison dmd/IntegerExp.d @ 73:ef02e2e203c2

Updating to dmd2.033
author korDen
date Sat, 28 Aug 2010 19:42:41 +0400
parents 2e2a5c3f943a
children ceda59b4d255
comparison
equal deleted inserted replaced
72:2e2a5c3f943a 73:ef02e2e203c2
20 20
21 import dmd.backend.dt_t; 21 import dmd.backend.dt_t;
22 import dmd.backend.Util; 22 import dmd.backend.Util;
23 23
24 import core.stdc.ctype : isprint; 24 import core.stdc.ctype : isprint;
25 import std.stdio;
25 26
26 class IntegerExp : Expression 27 class IntegerExp : Expression
27 { 28 {
28 ulong value; 29 ulong value;
29 30
164 default: 165 default:
165 /* This can happen if errors, such as 166 /* This can happen if errors, such as
166 * the type is painted on like in fromConstInitializer(). 167 * the type is painted on like in fromConstInitializer().
167 */ 168 */
168 if (!global.errors) 169 if (!global.errors)
169 { 170 {
171 printf("ty = %d, %d\n", type.ty, t.ty);
172 if (type.ty == Tenum) {
173 printf("test1\n");
174 }
170 ///type.print(); 175 ///type.print();
171 assert(0); 176 assert(0);
172 } 177 }
173 break; 178 break;
179
174 } 180 }
175 break; 181 break;
176 } 182 }
177 return value; 183 return value;
178 } 184 }