double promotion warning fix or ignore per module

This commit is contained in:
Daniel Agar
2018-01-07 21:43:17 -05:00
committed by Lorenz Meier
parent 11d348ec4f
commit cf74166801
41 changed files with 93 additions and 75 deletions
+3 -1
View File
@@ -41,6 +41,8 @@
#include <math.h>
#include <stdlib.h>
#include <px4_defines.h>
#include "test.hpp"
bool __EXPORT equal(float a, float b, float epsilon)
@@ -106,7 +108,7 @@ void __EXPORT float2SigExp(
// FIXME - This code makes no sense when exp is an int
// FIXME - isnan and isinf not defined for QuRT
#ifndef __PX4_QURT
if (isnan(num) || isinf(num)) {
if (!PX4_ISFINITE(num)) {
sig = 0.0f;
exp = -99;
return;