aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;