From 986bf172c5cb88ffba2edc2e03c61b0e068734f5 Mon Sep 17 00:00:00 2001 From: Roger Hughston Date: Thu, 16 Feb 2006 01:21:02 +0000 Subject: [PATCH] Cleaning Up Some Warnings OSX --- panda/src/putil/bitMask.I | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/putil/bitMask.I b/panda/src/putil/bitMask.I index 4547c64552..a5a05da493 100644 --- a/panda/src/putil/bitMask.I +++ b/panda/src/putil/bitMask.I @@ -75,7 +75,7 @@ template INLINE BitMask BitMask:: all_on() { BitMask result; - result._word = ~0; + result._word = (WordType)~0; return result; } @@ -136,7 +136,7 @@ range(int low_bit, int size) { if (size <= 0) { result._word = 0; } else if (size >= num_bits) { - result._word = ~0; + result._word = (WordType)~0; } else { result._word = ((WordType)1 << size) - 1; }