From: johanknol Date: Mon, 4 Jun 2001 13:26:38 +0000 (+0000) Subject: Constants < 256 are char's, not short int's X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=472cd168e769e0ac2ecae2a6df997a9b45a0aed1;p=fw%2Fsdcc Constants < 256 are char's, not short int's git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@867 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCval.c b/src/SDCCval.c index 091cd3ee..c197f817 100644 --- a/src/SDCCval.c +++ b/src/SDCCval.c @@ -326,9 +326,9 @@ constVal (char *s) SPEC_CVAL (val->type).v_int = sval; } - // check the size and make it a short if required + // check the size and make it a char if possible if (sval < 256) - SPEC_SHORT (val->etype) = 1; + SPEC_NOUN (val->etype) = V_CHAR; return val;