зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
1abcdc97e0
Коммит
fea8244842
|
@ -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) */
|
||||
|
|
Загрузка…
Ссылка в новой задаче