aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/archetype/string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/archetype/string.cpp')
-rw-r--r--engines/glk/archetype/string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/glk/archetype/string.cpp b/engines/glk/archetype/string.cpp
index d20a1c9487..849affab22 100644
--- a/engines/glk/archetype/string.cpp
+++ b/engines/glk/archetype/string.cpp
@@ -129,7 +129,7 @@ int String::val(int *code) {
if (code)
*code = 0;
- return result;
+ return sign * result;
}
String String::left(size_t count) const {