* src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
[fw/sdcc] / src / SDCC.y
index 4a38510e5b61aa71084b12754dc97a0cd909c666..a81e243e31054658c253d4ad8be28566e152e8a5 100644 (file)
@@ -597,7 +597,7 @@ type_specifier
           /* add this to the storage class specifier  */
            SPEC_ABSA($1) = 1;   /* set the absolute addr flag */
            /* now get the abs addr from value */
-           SPEC_ADDR($1) = (int) floatFromVal(constExprValue($3,TRUE)) ;
+           SPEC_ADDR($1) = (unsigned) floatFromVal(constExprValue($3,TRUE)) ;
         }
    ;