diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-10-30 13:58:03 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-10-30 13:58:03 -0230 |
commit | 07de2f5bc3a42b00812b1e5677548cbd45f6f203 (patch) | |
tree | c555541f713f9412f4a88995e300f22f8d23aba2 /cpp/src/Slice/Scanner.l | |
parent | Bug 3380 - windows release build broken (diff) | |
download | ice-07de2f5bc3a42b00812b1e5677548cbd45f6f203.tar.bz2 ice-07de2f5bc3a42b00812b1e5677548cbd45f6f203.tar.xz ice-07de2f5bc3a42b00812b1e5677548cbd45f6f203.zip |
Bug 3519 - fix isalpha, isprint, ... usage
Diffstat (limited to 'cpp/src/Slice/Scanner.l')
-rw-r--r-- | cpp/src/Slice/Scanner.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Slice/Scanner.l b/cpp/src/Slice/Scanner.l index be0dedaf96b..e836da8cf51 100644 --- a/cpp/src/Slice/Scanner.l +++ b/cpp/src/Slice/Scanner.l @@ -291,15 +291,15 @@ floating_literal (({fractional_constant}{exponent_part}?)|((\+|-)?[[:digit:]]+{e case 'x': { IceUtil::Int64 ull = 0; - while(isxdigit(next = static_cast<char>(yyinput()))) + while(isxdigit(static_cast<unsigned char>(next = static_cast<char>(yyinput())))) { str->literal += next; ull *= 16; - if(isdigit(next)) + if(isdigit(static_cast<unsigned char>(next))) { ull += next - '0'; } - else if(islower(next)) + else if(islower(static_cast<unsigned char>(next))) { ull += next - 'a' + 10; } |