Skip to content

Commit 3909d51

Browse files
use std::isnan and std::isinf
1 parent f369eae commit 3909d51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/t_hash.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ void hincrbyfloatCommand(client *c) {
729729
unsigned int vlen;
730730

731731
if (getLongDoubleFromObjectOrReply(c,c->argv[3],&incr,NULL) != C_OK) return;
732-
if (isnan(incr) || isinf(incr)) {
732+
if (std::isnan(incr) || std::isinf(incr)) {
733733
addReplyError(c,"value is NaN or Infinity");
734734
return;
735735
}

0 commit comments

Comments
 (0)