Selaa lähdekoodia

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

rdb 7 vuotta sitten
vanhempi
sitoutus
323ddc7d67
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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::
 INLINE bool UpdateSeq::
 is_special() const {
 is_special() const {
   // This relies on the assumption that (~0 + 1) == 0.
   // This relies on the assumption that (~0 + 1) == 0.
-  return ((AtomicAdjust::get(_seq) + 1) <= 2);
+  return (((unsigned int)AtomicAdjust::get(_seq) + 1u) <= 2u);
 }
 }
 
 
 /**
 /**