mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-09-05 19:28:58 +00:00
fix NULL pmf initialization
This commit is contained in:
parent
cfff01f846
commit
4316979264
@ -27,6 +27,8 @@
|
||||
|
||||
template< class PMF, class PF >
|
||||
inline PF nv_mem_fun_of(PMF pmf) {
|
||||
if (pmf == NULL)
|
||||
return NULL;
|
||||
union { PMF pmf; uintptr p[2]; } x;
|
||||
x.pmf = pmf;
|
||||
#if defined(__GXX_ABI_VERSION) /* GCC >= 3.0 */
|
||||
|
Loading…
Reference in New Issue
Block a user