redis-cli now makes clear when the returned string is an integer

This commit is contained in:
antirez 2009-11-01 15:31:54 +01:00
parent 443c6409c3
commit e2aba0f9ec

View File

@ -238,6 +238,7 @@ static int cliReadReply(int fd) {
cliReadSingleLineReply(fd); cliReadSingleLineReply(fd);
return 1; return 1;
case '+': case '+':
return cliReadSingleLineReply(fd);
case ':': case ':':
printf("(integer) "); printf("(integer) ");
return cliReadSingleLineReply(fd); return cliReadSingleLineReply(fd);