aboutsummaryrefslogtreecommitdiff
path: root/gob
diff options
context:
space:
mode:
authorLars Persson2005-06-14 20:20:57 +0000
committerLars Persson2005-06-14 20:20:57 +0000
commit82f5454246fd31d056e18057aed12c5afb273290 (patch)
tree63f73de280c3ac2fe97dc0cd3bb6733101b29de8 /gob
parent327ec439a5747082c1f17c153dda0cd0f10b6ced (diff)
downloadscummvm-rg350-82f5454246fd31d056e18057aed12c5afb273290.tar.gz
scummvm-rg350-82f5454246fd31d056e18057aed12c5afb273290.tar.bz2
scummvm-rg350-82f5454246fd31d056e18057aed12c5afb273290.zip
Bug fix for inter_execPtr beeing a char*. Char is not the same defined typ on all targets. On symbian a char is unsigned char but Gob is assuming int in this case.
len = *(int8*)inter_execPtr++; // must be a signed char typ and char is not default signed on all platforms. svn-id: r18393
Diffstat (limited to 'gob')
-rw-r--r--gob/inter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gob/inter.cpp b/gob/inter.cpp
index 4bc314125e..28a10d1064 100644
--- a/gob/inter.cpp
+++ b/gob/inter.cpp
@@ -1025,7 +1025,7 @@ void inter_checkSwitchTable(char **ppExec) {
value = VAR_OFFSET(value);
do {
- len = *inter_execPtr++;
+ len = *(int8*)inter_execPtr++; // must be a signed char typ and char is not default signed on all platforms.
if (len == -5)
break;