diff options
author | Max Horn | 2010-11-28 21:33:02 +0000 |
---|---|---|
committer | Max Horn | 2010-11-28 21:33:02 +0000 |
commit | 5d2b77899f83160ec969aeab6b266a6c63d27f11 (patch) | |
tree | fddad4f663ee73e8b5000c5d103d7584d88daef6 /engines | |
parent | 6b8a3dba7029366bcc950116d31227de96c7b81e (diff) | |
download | scummvm-rg350-5d2b77899f83160ec969aeab6b266a6c63d27f11.tar.gz scummvm-rg350-5d2b77899f83160ec969aeab6b266a6c63d27f11.tar.bz2 scummvm-rg350-5d2b77899f83160ec969aeab6b266a6c63d27f11.zip |
SWORD25: Fix warning: deref type-punned pointer breaks strict-aliasing rules
svn-id: r54550
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword25/kernel/objectregistry.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/kernel/objectregistry.h b/engines/sword25/kernel/objectregistry.h index 3a27ba4942..97fe19c93d 100644 --- a/engines/sword25/kernel/objectregistry.h +++ b/engines/sword25/kernel/objectregistry.h @@ -137,7 +137,7 @@ protected: }; struct ClassPointer_Hash { uint operator()(const T *x) const { - return *(uint *)&x; + return (uint)(x - (const T *)0); } }; |