diff options
Diffstat (limited to 'rlz/lib')
-rw-r--r-- | rlz/lib/string_utils.cc | 4 | ||||
-rw-r--r-- | rlz/lib/string_utils.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/rlz/lib/string_utils.cc b/rlz/lib/string_utils.cc index 50206a8..87988022 100644 --- a/rlz/lib/string_utils.cc +++ b/rlz/lib/string_utils.cc @@ -10,8 +10,8 @@ namespace rlz_lib { -bool IsAscii(char letter) { - return (letter >= 0x0 && letter < 0x80); +bool IsAscii(unsigned char letter) { + return letter < 0x80; } bool GetHexValue(char letter, int* value) { diff --git a/rlz/lib/string_utils.h b/rlz/lib/string_utils.h index 6f64e58..0893a6c 100644 --- a/rlz/lib/string_utils.h +++ b/rlz/lib/string_utils.h @@ -11,7 +11,7 @@ namespace rlz_lib { -bool IsAscii(char letter); +bool IsAscii(unsigned char letter); bool BytesToString(const unsigned char* data, int data_len, |