mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-28 05:04:13 +00:00
windows fix trivial compiler warning
This commit is contained in:
parent
23bd06881d
commit
66a94a2c45
@ -677,7 +677,7 @@ SWITCH_DECLARE(switch_status_t) switch_b64_encode(unsigned char *in, switch_size
|
|||||||
|
|
||||||
while (l >= 6) {
|
while (l >= 6) {
|
||||||
out[bytes++] = switch_b64_table[(b >> (l -= 6)) % 64];
|
out[bytes++] = switch_b64_table[(b >> (l -= 6)) % 64];
|
||||||
if (bytes >= olen - 1) {
|
if (bytes >= (int)olen - 1) {
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
if (++y != 72) {
|
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];
|
out[bytes++] = switch_b64_table[((b % 16) << (6 - l)) % 64];
|
||||||
}
|
}
|
||||||
if (l != 0) {
|
if (l != 0) {
|
||||||
while (l < 6 && bytes < olen - 1) {
|
while (l < 6 && bytes < (int)olen - 1) {
|
||||||
out[bytes++] = '=', l += 2;
|
out[bytes++] = '=', l += 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user