[Scummvm-git-logs] scummvm master -> 3081c362c625f8320dfd1ff9668df4b621c42b7c
aquadran
noreply at scummvm.org
Sun May 29 18:53:37 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3081c362c6 SWORD25: Fixed warning - restored to previous code
Commit: 3081c362c625f8320dfd1ff9668df4b621c42b7c
https://github.com/scummvm/scummvm/commit/3081c362c625f8320dfd1ff9668df4b621c42b7c
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2022-05-29T20:53:32+02:00
Commit Message:
SWORD25: Fixed warning - restored to previous code
Changed paths:
engines/sword25/kernel/objectregistry.h
diff --git a/engines/sword25/kernel/objectregistry.h b/engines/sword25/kernel/objectregistry.h
index 772a3d0ba2d..e6bbd2f1b42 100644
--- a/engines/sword25/kernel/objectregistry.h
+++ b/engines/sword25/kernel/objectregistry.h
@@ -134,7 +134,7 @@ protected:
};
struct ClassPointer_Hash {
uint operator()(const T *x) const {
- return (uint)(x - (const T *)0);
+ return *(uint *)&x;
}
};
More information about the Scummvm-git-logs
mailing list