Skip to content

Commit

Permalink
Update to reflect api fixes made since the PR was created
Browse files Browse the repository at this point in the history
  • Loading branch information
kristjanvalur committed Mar 22, 2022
1 parent 2ef1518 commit 5878130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hiredis.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ long long redisFormatSdsCommandArgv(sds *target, int argc, const char **argv,
assert(sdslen(cmd)==totlen);

*target = cmd;
return (int) totlen; /* should use ssize_t */
return (long long) totlen; /* api really should use ssize_t */
}

void redisFreeSdsCommand(sds cmd) {
Expand Down Expand Up @@ -663,7 +663,7 @@ long long redisFormatCommandArgv(char **target, int argc, const char **argv, con
cmd[pos] = '\0';

*target = cmd;
return (int)totlen; /* should really use ssize_t */
return (long long) totlen; /* api should really use ssize_t */
}

void redisFreeCommand(char *cmd) {
Expand Down

0 comments on commit 5878130

Please sign in to comment.