Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit b0c92f4

Browse files
committed
fix build on linux x64 bits
1 parent 52589f9 commit b0c92f4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/beison.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <charconv>
77
#include <regex>
88
#include <utility>
9+
#include <cmath>
910

1011
namespace beison
1112
{
@@ -249,7 +250,7 @@ namespace beison
249250
}
250251
Value Value::number(double d) noexcept
251252
{
252-
if (!isfinite(d)) std::abort();
253+
if (!std::isfinite(d)) std::abort();
253254
Value val;
254255
val.underlying_ = std::make_unique<ValueImpl>(ValueKindConstant<VK::Number>(), d);
255256
return val;

0 commit comments

Comments
 (0)