Most enums were replaced with constants, according to MISRA

This commit is contained in:
Pavel Kirienko
2014-04-19 15:16:10 +04:00
parent ace2cf9d0e
commit dfe3b4511e
21 changed files with 95 additions and 55 deletions
@@ -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())
{