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