Commit 5e8ce83b authored by Sean Cannella's avatar Sean Cannella Committed by Sara Golemon

Fix OS X compilation

Summary: Fix OS X compilation

Test Plan: compiled on OS X

Reviewed By: delong.j@fb.com

FB internal diff: D1163199
parent 219c6976
...@@ -127,7 +127,7 @@ struct Printer { ...@@ -127,7 +127,7 @@ struct Printer {
switch (v.type()) { switch (v.type()) {
case dynamic::DOUBLE: case dynamic::DOUBLE:
if (!opts_.allow_nan_inf && if (!opts_.allow_nan_inf &&
(isnan(v.asDouble()) || isinf(v.asDouble()))) { (std::isnan(v.asDouble()) || std::isinf(v.asDouble()))) {
throw std::runtime_error("folly::toJson: JSON object value was a " throw std::runtime_error("folly::toJson: JSON object value was a "
"NaN or INF"); "NaN or INF");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment