fix signed/unsigned comparison warnings
authorDr. Stephen Henson <steve@openssl.org>
Wed, 14 Apr 2010 00:41:14 +0000 (00:41 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 14 Apr 2010 00:41:14 +0000 (00:41 +0000)
ssl/d1_both.c

index 0855de352aeeed7bc8d1bed3eb2cf0951bcf7f6e..833af4561042d3850f74e662e0473f3108db61b0 100644 (file)
 
 #define RSMBLY_BITMASK_MARK(bitmask, start, end) { \
                        if ((end) - (start) <= 8) { \
-                               int ii; \
+                               unsigned long ii; \
                                for (ii = (start); ii < (end); ii++) bitmask[((ii) >> 3)] |= (1 << ((ii) & 7)); \
                        } else { \
-                               int ii; \
+                               unsigned long ii; \
                                bitmask[((start) >> 3)] |= bitmask_start_values[((start) & 7)]; \
                                for (ii = (((start) >> 3) + 1); ii < ((end) >> 3); ii++) bitmask[ii] = 0xff; \
                                bitmask[((end) >> 3)] |= bitmask_end_values[((end) & 7)]; \
                        } }
 
 #define RSMBLY_BITMASK_IS_COMPLETE(bitmask, msg_len, is_complete) { \
-                       int ii; \
+                       unsigned long ii; \
                        is_complete = 1; \
                        if (bitmask[((msg_len) >> 3)] != bitmask_end_values[((msg_len) & 7)]) is_complete = 0; \
                        if (is_complete) for (ii = 0; ii < ((msg_len) >> 3); ii++) \