SWORD25: Fixed warning - restored to previous code

This commit is contained in:
Paweł Kołodziejski 2022-05-29 20:53:32 +02:00
parent e632a94cd4
commit 3081c362c6
No known key found for this signature in database
GPG Key ID: 0BDADC9E74440FF7

View File

@ -134,7 +134,7 @@ protected:
};
struct ClassPointer_Hash {
uint operator()(const T *x) const {
return (uint)(x - (const T *)0);
return *(uint *)&x;
}
};