git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1387
4a8a32a2-be11-0410-ad9d-
d568d2c75423
char message[132]="";
int warnings=0;
int negative=0;
- long v=SPEC_CVAL(val->type).v_long;
+ long v;
+
+ if (SPEC_LONG(val->type)) {
+ v=SPEC_CVAL(val->type).v_long;
+ } else {
+ v=SPEC_CVAL(val->type).v_int;
+ }
+
#if 0
// this could be a good idea
}
}
else /* not a backslash */
- SPEC_CVAL (val->type).v_int = (unsigned char)*s;
+ SPEC_CVAL (val->type).v_uint = (unsigned char)*s;
return val;
}