mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-12 16:30:44 +00:00
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:
parent
6255bd24c3
commit
2747c0b5e2
@ -248,13 +248,13 @@ class nw_scalar_member_helper {
|
||||
uint8 _pad[sizeof(type)];
|
||||
public:
|
||||
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 {
|
||||
return this->operator public_type ();
|
||||
}
|
||||
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;
|
||||
}
|
||||
nw_scalar_member_helper<type, public_type> & operator += (int val) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user