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

This commit is contained in:
rdb 2018-05-24 21:37:58 +02:00
parent 5e0ce969fe
commit 323ddc7d67

View File

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