From 3aa78832fc4e036495de939178bc733dff74b46a Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Wed, 22 Jun 2005 12:25:43 +0000 Subject: [PATCH] pointer-to-member-functions fixlets, NULL may be (void *)0 on ancient compilers which is not suitable here. --- SheepShaver/src/kpx_cpu/include/nvmemfun.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SheepShaver/src/kpx_cpu/include/nvmemfun.hpp b/SheepShaver/src/kpx_cpu/include/nvmemfun.hpp index b8d15afe..2dbff58d 100644 --- a/SheepShaver/src/kpx_cpu/include/nvmemfun.hpp +++ b/SheepShaver/src/kpx_cpu/include/nvmemfun.hpp @@ -27,8 +27,8 @@ template< class PMF, class PF > inline PF nv_mem_fun_of(PMF pmf) { - if (pmf == NULL) - return NULL; + if (pmf == 0) + return 0; union { PMF pmf; uintptr p[2]; } x; x.pmf = pmf; #if defined(__GXX_ABI_VERSION) /* GCC >= 3.0 */