for (;;)
{
if (ic->op == '+')
- val += operandLitValue (IC_RIGHT (ic));
+ val += (int) operandLitValue (IC_RIGHT (ic));
else if (ic->op == '-')
- val -= operandLitValue (IC_RIGHT (ic));
+ val -= (int) operandLitValue (IC_RIGHT (ic));
else
break;
if (sym->ruonly)
{
- int i;
+ unsigned i;
aop = op->aop = sym->aop = newAsmop (AOP_STR);
aop->size = getSize (sym->type);
for (i = 0; i < fReturnSizeMCS51; i++)
/* if the literal value of the right hand side
is greater than 4 then it is not worth it */
- if ((icount = floatFromVal (AOP (IC_RIGHT (ic))->aopu.aop_lit)) > 4)
+ if ((icount = (unsigned int) floatFromVal (AOP (IC_RIGHT (ic))->aopu.aop_lit)) > 4)
return FALSE;
/* if increment 16 bits in register */
return lic;
}
/* if the operand used or deffed */
- if (bitVectBitValue(ic->uses,op->key) || ic->defKey == op->key) {
+ if (bitVectBitValue(ic->uses,op->key) || (unsigned) ic->defKey == op->key) {
return NULL;
}
lic = lic->next;
then mark it */
if (POINTER_GET (ic) && IS_SYMOP (IC_LEFT (ic))
&& getSize (OP_SYMBOL (IC_LEFT (ic))->type)
- <= PTRSIZE)
+ <= (unsigned int) PTRSIZE)
{
mcs51_ptrRegReq++;
ptrRegSet = 1;