aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kstring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp
index fd84f96897..f02f5f5636 100644
--- a/engines/sci/engine/kstring.cpp
+++ b/engines/sci/engine/kstring.cpp
@@ -335,7 +335,7 @@ reg_t kReadNumber(EngineState *s, int argc, reg_t *argv) {
Common::String source_str = s->segMan->getString(argv[0]);
const char *source = source_str.c_str();
- while (isspace(*source))
+ while (isspace((unsigned char)*source))
source++; /* Skip whitespace */
if (*source == '$') /* SCI uses this for hex numbers */