Fix #115 by fixing the math.h and cmath includes.

This commit is contained in:
Jacob Young
2017-09-12 02:21:22 -04:00
committed by Ecco
parent e05033cf6e
commit da1e66e798
41 changed files with 497 additions and 140 deletions

View File

@@ -319,7 +319,7 @@ Evaluation<float> * Integer::privateEvaluate(SinglePrecision p, Context& context
/* If exponent is 255 and the float is undefined, we have exceed IEEE 754
* representable float. */
if (exponent == 255 && isnan(float_result)) {
if (exponent == 255 && std::isnan(float_result)) {
return new Complex<float>(Complex<float>::Float(INFINITY));
}
@@ -389,7 +389,7 @@ Evaluation<double> * Integer::privateEvaluate(DoublePrecision p, Context& contex
/* If exponent is 2047 and the double is undefined, we have exceed IEEE 754
* representable double. */
if (exponent == 2047 && isnan(double_result)) {
if (exponent == 2047 && std::isnan(double_result)) {
return new Complex<double>(Complex<double>::Float(INFINITY));
}
return new Complex<double>(Complex<double>::Float(double_result));