Commit d8a4ee26 authored by JINMEI Tatuya's avatar JINMEI Tatuya

[master] make the use of isspace() more portable regarding signedness of char

the old code seems to be rejected in an ARM environment

okayed on jabber.
parent bd8497df
......@@ -291,7 +291,8 @@ BaseNTransformer<BitsPerChunk, BaseZeroCode, Encoder, Decoder>::decode(
isc_throw(BadValue, "Too many " << algorithm
<< " padding characters: " << input);
}
} else if (ch < 0 || !isspace(ch)) {
} else if (!(ch > 0 && isspace(ch))) {
// see the note for DecodeNormalizer::skipSpaces() above for ch > 0
break;
}
++srit;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment