]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
windows fix trivial compiler warning
authorJeff Lenk <jeff@jefflenk.com>
Wed, 22 May 2013 15:38:04 +0000 (10:38 -0500)
committerTravis Cross <tc@traviscross.com>
Fri, 7 Jun 2013 05:42:43 +0000 (05:42 +0000)
src/switch_utils.c

index 3dbb61da940368e1c89189922c82e8b3ee17cca7..9b577d7801b60535e8461c81e92ceb759259ef20 100644 (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;
                }
        }