提交 6000c884 authored 作者: Jeff Lenk's avatar Jeff Lenk 提交者: Travis Cross

windows fix trivial compiler warning

上级 537f14b0
......@@ -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;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论