diff --git a/src/t_hash.cpp b/src/t_hash.cpp index e2d48d91d..2b9979f9e 100644 --- a/src/t_hash.cpp +++ b/src/t_hash.cpp @@ -729,7 +729,7 @@ void hincrbyfloatCommand(client *c) { unsigned int vlen; if (getLongDoubleFromObjectOrReply(c,c->argv[3],&incr,NULL) != C_OK) return; - if (isnan(incr) || isinf(incr)) { + if (std::isnan(incr) || std::isinf(incr)) { addReplyError(c,"value is NaN or Infinity"); return; }