X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=riscasm.c;h=f9aa055327eeef89d4e7ce5990214e699a2cddb3;hp=533eca7e41f52f75b70b39c834968bb0a97069ad;hb=0951a3e28907fbaf89a10c5201b71d8080ffe5a8;hpb=a67f83362cf6cf699e3fd67fb30b58fee6b10c78 diff --git a/riscasm.c b/riscasm.c index 533eca7..f9aa055 100644 --- a/riscasm.c +++ b/riscasm.c @@ -193,7 +193,7 @@ int GetRegister(WORD rattr) } // If we got a register in range (0-31), return it - if ((eval >= 0) && (eval <= 31)) + if (eval <= 31) return (int)eval; // Otherwise, it's out of range & we flag an error @@ -751,7 +751,7 @@ int GenerateRISCCode(int state) ccsym = lookup(string[tok[1]], LABEL, 0); if (ccsym && (ccsym->sattre & EQUATEDCC) && !(ccsym->sattre & UNDEF_CC)) - val = ccsym->svalue; + val = (int)ccsym->svalue; else return error("unknown condition code"); }