git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1359
4a8a32a2-be11-0410-ad9d-
d568d2c75423
else
{
if (SPEC_USIGN (val->etype))
- SPEC_CVAL (val->etype).v_uint = (unsigned int) fval;
+ if (SPEC_NOUN (val->etype)==V_CHAR) {
+ SPEC_CVAL (val->etype).v_uint = (unsigned char) fval;
+ } else {
+ SPEC_CVAL (val->etype).v_uint = (unsigned int) fval;
+ }
else
- SPEC_CVAL (val->etype).v_int = (int) fval;
+ if (SPEC_NOUN (val->etype)==V_CHAR) {
+ SPEC_CVAL (val->etype).v_int = (char) fval;
+ } else {
+ SPEC_CVAL (val->etype).v_int = (int) fval;
+ }
}
}
return val;