From c16875f104dc25f86946a58663745c3ba0be3819 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 31 Oct 2011 22:50:28 +0000 Subject: [PATCH] use Posix longs --- dtool/src/dtoolbase/atomicAdjustPosixImpl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dtool/src/dtoolbase/atomicAdjustPosixImpl.h b/dtool/src/dtoolbase/atomicAdjustPosixImpl.h index af1ee0cb36..00f60b9396 100644 --- a/dtool/src/dtoolbase/atomicAdjustPosixImpl.h +++ b/dtool/src/dtoolbase/atomicAdjustPosixImpl.h @@ -30,7 +30,10 @@ //////////////////////////////////////////////////////////////////// class EXPCL_DTOOL AtomicAdjustPosixImpl { public: - typedef int Integer; + // In Posix, "long" is generally the native word size (32- or + // 64-bit), which is what we'd prefer. + typedef long Integer; + INLINE static void inc(TVOLATILE Integer &var); INLINE static bool dec(TVOLATILE Integer &var); INLINE static void add(TVOLATILE Integer &var, Integer delta);