]> git.sur5r.net Git - cc65/blobdiff - src/cc65/typeconv.c
Added dummy classification macros for the remaining targets - even for those that...
[cc65] / src / cc65 / typeconv.c
index d26ba32b2e27079733bc273451a4be4dbf5840e3..ecde7349fbaac217d810ac5094d9f50f434dbb99 100644 (file)
@@ -128,7 +128,7 @@ static void DoConversion (ExprDesc* Expr, const Type* NewType)
             Expr->IVal &= (0xFFFFFFFFUL >> (32 - NewBits));
 
             /* If the new type is signed, sign extend the value */
-            if (!IsSignUnsigned (NewType)) {
+            if (IsSignSigned (NewType)) {
                 if (Expr->IVal & (0x01UL << (NewBits-1))) {
                     /* Beware: Use the safe shift routine here. */
                     Expr->IVal |= shl_l (~0UL, NewBits);