From 168ae6f7e2e87d3050c39bbb03148924751370a3 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 24 May 2009 21:09:00 +0000 Subject: (svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts. --- src/3rdparty/squirrel/squirrel/sqvm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/3rdparty/squirrel') diff --git a/src/3rdparty/squirrel/squirrel/sqvm.cpp b/src/3rdparty/squirrel/squirrel/sqvm.cpp index 0cb66e9c1..bed94bf6e 100644 --- a/src/3rdparty/squirrel/squirrel/sqvm.cpp +++ b/src/3rdparty/squirrel/squirrel/sqvm.cpp @@ -440,7 +440,7 @@ bool SQVM::DerefInc(SQInteger op,SQObjectPtr &target, SQObjectPtr &self, SQObjec #define arg0 (_i_._arg0) #define arg1 (_i_._arg1) -#define sarg1 (*((SQInt32 *)&_i_._arg1)) +#define sarg1 (*(const_cast(&_i_._arg1))) #define arg2 (_i_._arg2) #define arg3 (_i_._arg3) #define sarg3 ((SQInteger)*((signed char *)&_i_._arg3)) -- cgit v1.2.3-70-g09d2