pedantic>1: "char c=200" is not allowed (evaluates to -56)
*/
-void checkConstantRange(sym_link *ltype, long v, char *msg, int pedantic) {
+void checkConstantRange(sym_link *ltype, double v, char *msg, int pedantic) {
LONG_LONG max = (LONG_LONG) 1 << bitsForType(ltype);
char message[132]="";
int warnings=0;
if (IS_INTEGRAL (ltype) && right->type == VALUE && IS_LITERAL (rtype))
{
checkConstantRange(ltype,
- (long)operandLitValue(right), "= operation", 0);
+ operandLitValue(right), "= operation", 0);
}
/* if the left & right type don't exactly match */
goto release;
/* if the result is a bit */
- // if (AOP_TYPE (result) == AOP_CRY) /* works only for true symbols */
- if (IS_BITVAR(OP_SYMBOL(result)->type))
+ if (AOP_TYPE (result) == AOP_CRY) /* works only for true symbols */
{
/* if the right size is a literal then
we know what the value is */
aopOp (result, ic, FALSE, AOP_TYPE (right) == AOP_DPTR);
/* if the result is a bit */
- if (AOP_TYPE (result) == AOP_CRY)
+ // if (AOP_TYPE (result) == AOP_CRY) /* works only for true symbols */
+ if (IS_BITVAR(OP_SYMBOL(result)->type))
{
/* if the right size is a literal then
we know what the value is */