From 4e9dee776361e8ba4e375bfb3aa5e1c225cbb4fc Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 6 Apr 2016 13:33:54 +0200 Subject: [PATCH] I had issue with the autoincrement. I prefer some warning about void* math --- Sources/Engine/Base/Shell.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/Engine/Base/Shell.h b/Sources/Engine/Base/Shell.h index 09b8ca6..a11571f 100644 --- a/Sources/Engine/Base/Shell.h +++ b/Sources/Engine/Base/Shell.h @@ -24,7 +24,11 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include +#if 0 #define NEXTARGUMENT(type) ( *((type*&)pArgs)++ ) +#else +#define NEXTARGUMENT(type) ( *((type*)&pArgs) ); pArgs+=sizeof(void*); +#endif // Object that takes care of shell functions, variables, macros etc. class ENGINE_API CShell {