From 323ddc7d67f856bed50ae156de3c26ea4cbe04c9 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 24 May 2018 21:37:58 +0200 Subject: [PATCH] putil: fix UpdateSeq::fresh().is_special() return value --- panda/src/putil/updateSeq.I | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/putil/updateSeq.I b/panda/src/putil/updateSeq.I index 0083c98bca..ea9af8427c 100644 --- a/panda/src/putil/updateSeq.I +++ b/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); } /**