mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-12 07:13:33 +08:00
Stupid condition swap to eliminate a false positive from static analyzer
This commit is contained in:
@@ -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; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user