mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
fixes bug 283659 "punycode.c:130: warning: signed and unsigned type in conditional expression" patch by baafie@planet.nl r+sr=darin
This commit is contained in:
parent
1d4b744179
commit
777171a792
@ -127,7 +127,7 @@ enum punycode_status punycode_encode(
|
||||
if (basic(input[j])) {
|
||||
if (max_out - out < 2) return punycode_big_output;
|
||||
output[out++] =
|
||||
case_flags ? encode_basic(input[j], case_flags[j]) : input[j];
|
||||
case_flags ? encode_basic(input[j], case_flags[j]) : (char)input[j];
|
||||
}
|
||||
/* else if (input[j] < n) return punycode_bad_input; */
|
||||
/* (not needed for Punycode with unsigned code points) */
|
||||
|
Loading…
Reference in New Issue
Block a user