From 82f5454246fd31d056e18057aed12c5afb273290 Mon Sep 17 00:00:00 2001 From: Lars Persson Date: Tue, 14 Jun 2005 20:20:57 +0000 Subject: 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 --- gob/inter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gob') 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; -- cgit v1.2.3