mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
putil: fix UpdateSeq::fresh().is_special() return value
This commit is contained in:
parent
5e0ce969fe
commit
323ddc7d67
@ -87,7 +87,7 @@ is_fresh() const {
|
||||
INLINE bool UpdateSeq::
|
||||
is_special() const {
|
||||
// This relies on the assumption that (~0 + 1) == 0.
|
||||
return ((AtomicAdjust::get(_seq) + 1) <= 2);
|
||||
return (((unsigned int)AtomicAdjust::get(_seq) + 1u) <= 2u);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user