Skip to content

Commit

Permalink
Explicit std:: name space, seems to make compiler happy
Browse files Browse the repository at this point in the history
This hopefully fixes the build errors on isnan() usage on the
Ubuntu 16 platform, and also makes it clear which isnan() we use
here.
  • Loading branch information
zwoop committed Mar 13, 2017
1 parent 8e5b9ea commit 1076ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/traffic_manager/metrics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ struct Evaluator {
case RECD_FLOAT:
// Lua will eval 0/0 to NaN rather than 0.
rec_value.rec_float = lua_tonumber(L, -1);
if (isnan(rec_value.rec_float)) {
if (std::isnan(rec_value.rec_float)) {
rec_value.rec_float = 0.0;
}
break;
Expand Down

0 comments on commit 1076ec8

Please sign in to comment.