mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-09-07 16:54:28 +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)];
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user