From 3909d51337c90f1068a180a031b3b217ff5d28b6 Mon Sep 17 00:00:00 2001 From: Malavan Sotheeswaran Date: Thu, 20 Apr 2023 15:17:21 -0700 Subject: [PATCH] use std::isnan and std::isinf --- src/t_hash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }