From 45106caab7bcfea84734ff5c0ff5d0acd6363c68 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 14 Apr 2010 00:41:14 +0000 Subject: [PATCH] fix signed/unsigned comparison warnings --- ssl/d1_both.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ssl/d1_both.c b/ssl/d1_both.c index 0855de352a..833af45610 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -127,17 +127,17 @@ #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++) \ -- 2.40.0