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:
darin%meer.net 2005-02-26 07:36:15 +00:00
parent 1d4b744179
commit 777171a792

View File

@ -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) */