windows fix trivial compiler warning

This commit is contained in:
Jeff Lenk 2013-05-22 10:38:04 -05:00 committed by Travis Cross
parent 537f14b049
commit 6000c884aa
1 changed files with 2 additions and 2 deletions

View File

@ -666,7 +666,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) {
@ -681,7 +681,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;
}
}