Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/vm/capi/bignum.cpp b/vm/capi/bignum.cpp
index 4ece83d..18b9379 100644
--- a/vm/capi/bignum.cpp
+++ b/vm/capi/bignum.cpp
@@ -1,4 +1,5 @@
 #include <math.h>
+#include <cmath>

 #include "builtin/bignum.hpp"
 #include "builtin/object.hpp"
@@ -67,7 +68,7 @@ extern "C" {

     Bignum* big = c_as<Bignum>(env->get_object(obj));
     double d = big->to_double(env->state());
-    if(isinf(d)) {
+    if(std::isinf(d)) {
       rb_warn("Bignum out of Float range");
       d = HUGE_VAL;
     }