From: kvigor Date: Wed, 5 Mar 2003 20:23:58 +0000 (+0000) Subject: Fix inconsistent handling of bit variables X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=70085fafdd308ecd1e04030be34de815de1c54ac;p=fw%2Fsdcc Fix inconsistent handling of bit variables git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2335 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCval.c b/src/SDCCval.c index b6988f5e..56778663 100644 --- a/src/SDCCval.c +++ b/src/SDCCval.c @@ -907,7 +907,7 @@ floatFromVal (value * val) } if (IS_BITVAR(val->etype)) { - return (double) SPEC_CVAL (val->etype).v_ulong; + return (double) SPEC_CVAL (val->etype).v_uint; } if (SPEC_NOUN (val->etype) == V_VOID) {