From 66a94a2c4590f31d1ae4daf4a33ce00cdd6c0c96 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Wed, 22 May 2013 10:38:04 -0500 Subject: [PATCH] windows fix trivial compiler warning --- src/switch_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_utils.c b/src/switch_utils.c index 3efe68d456..bc97f19120 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -677,7 +677,7 @@ SWITCH_DECLARE(switch_status_t) switch_b64_encode(unsigned char *in, switch_size while (l >= 6) { out[bytes++] = switch_b64_table[(b >> (l -= 6)) % 64]; - if (bytes >= olen - 1) { + if (bytes >= (int)olen - 1) { goto end; } if (++y != 72) { @@ -692,7 +692,7 @@ SWITCH_DECLARE(switch_status_t) switch_b64_encode(unsigned char *in, switch_size out[bytes++] = switch_b64_table[((b % 16) << (6 - l)) % 64]; } if (l != 0) { - while (l < 6 && bytes < olen - 1) { + while (l < 6 && bytes < (int)olen - 1) { out[bytes++] = '=', l += 2; } }