From 2eb15268f77d24c8cd21e203054c4667d636de61 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Sat, 19 Apr 2014 15:30:30 +0400 Subject: [PATCH] Stupid condition swap to eliminate a false positive from static analyzer --- libuavcan/include/uavcan/marshal/integer_spec.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuavcan/include/uavcan/marshal/integer_spec.hpp b/libuavcan/include/uavcan/marshal/integer_spec.hpp index f4a4eb2754..14c2cb7485 100644 --- a/libuavcan/include/uavcan/marshal/integer_spec.hpp +++ b/libuavcan/include/uavcan/marshal/integer_spec.hpp @@ -64,7 +64,7 @@ private: { static StorageType max() { - return StorageType((IsSigned != 0) ? 0x7FFFFFFFFFFFFFFFLL : 0xFFFFFFFFFFFFFFFFULL); + return StorageType((IsSigned == 0) ? 0xFFFFFFFFFFFFFFFFULL : 0x7FFFFFFFFFFFFFFFLL); } static UnsignedStorageType mask() { return 0xFFFFFFFFFFFFFFFFULL; } };