Skip to content

Commit

Permalink
use std::isnan and std::isinf
Browse files Browse the repository at this point in the history
  • Loading branch information
msotheeswaran-sc committed Apr 20, 2023
1 parent f369eae commit 3909d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/t_hash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3909d51

Please sign in to comment.