Remove casts which were not needed and causing comparison sign mismatch
authorNelson Ferreira <nelson.ferreira@ieee.org>
Thu, 5 Jan 2012 06:35:08 +0000 (01:35 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Thu, 5 Jan 2012 06:35:08 +0000 (01:35 -0500)
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/mule/mule-ccl.c

index 95a1866..99c8942 100644 (file)
@@ -959,7 +959,7 @@ ccl_driver(struct ccl_program *ccl,
                case CCL_SetArray:      /* CCCCCCCCCCCCCCCCCCCCRRRrrrXXXXX */
                        i = reg[RRR];
                        j = field1 >> 3;
-                       if ((unsigned int)i < j)
+                       if (i < j)
                                reg[rrr] = XINT(ccl_prog[ic + i]);
                        ic += j;
                        break;
@@ -1011,7 +1011,7 @@ ccl_driver(struct ccl_program *ccl,
                case CCL_WriteArrayReadJump:    /* A--D--D--R--E--S--S-rrrXXXXX */
                        i = reg[rrr];
                        j = XINT(ccl_prog[ic]);
-                       if ((unsigned int)i < j) {
+                       if (i < j) {
                                i = XINT(ccl_prog[ic + 1 + i]);
                                CCL_WRITE_CHAR(i);
                        }
@@ -1029,7 +1029,7 @@ ccl_driver(struct ccl_program *ccl,
                        CCL_READ_CHAR(reg[rrr]);
                        /* fall through ... */
                case CCL_Branch:        /* CCCCCCCCCCCCCCCCCCCCrrrXXXXX */
-                       if ((unsigned int)reg[rrr] < field1)
+                       if (reg[rrr] < field1)
                                ic += XINT(ccl_prog[ic + reg[rrr]]);
                        else
                                ic += XINT(ccl_prog[ic + field1]);
@@ -1129,7 +1129,7 @@ ccl_driver(struct ccl_program *ccl,
 
                case CCL_WriteArray:    /* CCCCCCCCCCCCCCCCCCCCrrrXXXXX */
                        i = reg[rrr];
-                       if ((unsigned int)i < field1) {
+                       if (i < field1) {
                                j = XINT(ccl_prog[ic + i]);
                                CCL_WRITE_CHAR(j);
                        }