mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 04:43:33 +08:00
Most enums were replaced with constants, according to MISRA
This commit is contained in:
@@ -152,7 +152,7 @@ private:
|
||||
static inline void saturate(StorageType& value)
|
||||
{
|
||||
using namespace std;
|
||||
if (!IsExactRepresentation && isfinite(value))
|
||||
if ((IsExactRepresentation == 0) && isfinite(value))
|
||||
{
|
||||
if (value > max())
|
||||
{
|
||||
@@ -172,7 +172,7 @@ private:
|
||||
static inline void truncate(StorageType& value)
|
||||
{
|
||||
using namespace std;
|
||||
if (!IsExactRepresentation && isfinite(value))
|
||||
if ((IsExactRepresentation == 0) && isfinite(value))
|
||||
{
|
||||
if (value > max())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user