mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
Cleaning Up Some Warnings OSX
This commit is contained in:
parent
2b32bad34f
commit
986bf172c5
@ -75,7 +75,7 @@ template<class WType, int nbits>
|
||||
INLINE BitMask<WType, nbits> BitMask<WType, nbits>::
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user