Shut up remaining warnings as we are now sure pointers are allocated in

MacOS address space. TODO: add checks to be sure?
This commit is contained in:
gbeauche 2004-12-18 18:43:25 +00:00
parent 6255bd24c3
commit 2747c0b5e2

View File

@ -248,13 +248,13 @@ class nw_scalar_member_helper {
uint8 _pad[sizeof(type)]; uint8 _pad[sizeof(type)];
public: public:
operator public_type () const { operator public_type () const {
return (public_type)nw_memory_helper<sizeof(type)>::load((void *)this); return (public_type)(uintptr)nw_memory_helper<sizeof(type)>::load((void *)this);
} }
public_type operator -> () const { public_type operator -> () const {
return this->operator public_type (); return this->operator public_type ();
} }
nw_scalar_member_helper<type, public_type> & operator = (public_type val) { nw_scalar_member_helper<type, public_type> & operator = (public_type val) {
nw_memory_helper<sizeof(type)>::store((void *)this, (type)val); nw_memory_helper<sizeof(type)>::store((void *)this, (type)(uintptr)val);
return *this; return *this;
} }
nw_scalar_member_helper<type, public_type> & operator += (int val) { nw_scalar_member_helper<type, public_type> & operator += (int val) {