From 472cd168e769e0ac2ecae2a6df997a9b45a0aed1 Mon Sep 17 00:00:00 2001 From: johanknol Date: Mon, 4 Jun 2001 13:26:38 +0000 Subject: [PATCH] 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 --- src/SDCCval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2