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);