Browse Source

putil: fix UpdateSeq::fresh().is_special() return value

rdb 7 years ago
parent
commit
323ddc7d67
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/putil/updateSeq.I

+ 1 - 1
panda/src/putil/updateSeq.I

@@ -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);
 }
 
 /**