fix spelling mistakes
This commit is contained in:
parent
c96d492215
commit
386b9950f3
@ -101,7 +101,7 @@ typedef struct redisReply {
|
|||||||
double dval; /* The double when type is REDIS_REPLY_DOUBLE */
|
double dval; /* The double when type is REDIS_REPLY_DOUBLE */
|
||||||
size_t len; /* Length of string */
|
size_t len; /* Length of string */
|
||||||
char *str; /* Used for REDIS_REPLY_ERROR, REDIS_REPLY_STRING
|
char *str; /* Used for REDIS_REPLY_ERROR, REDIS_REPLY_STRING
|
||||||
and REDIS_REPLY_DOUBLE (in additionl to dval). */
|
and REDIS_REPLY_DOUBLE (in additional to dval). */
|
||||||
size_t elements; /* number of elements, for REDIS_REPLY_ARRAY */
|
size_t elements; /* number of elements, for REDIS_REPLY_ARRAY */
|
||||||
struct redisReply **element; /* elements vector for REDIS_REPLY_ARRAY */
|
struct redisReply **element; /* elements vector for REDIS_REPLY_ARRAY */
|
||||||
} redisReply;
|
} redisReply;
|
||||||
|
2
read.c
2
read.c
@ -297,7 +297,7 @@ static int processLineItem(redisReader *r) {
|
|||||||
if (strcasecmp(buf,",inf") == 0) {
|
if (strcasecmp(buf,",inf") == 0) {
|
||||||
d = INFINITY; /* Positive infinite. */
|
d = INFINITY; /* Positive infinite. */
|
||||||
} else if (strcasecmp(buf,",-inf") == 0) {
|
} else if (strcasecmp(buf,",-inf") == 0) {
|
||||||
d = -INFINITY; /* Nevative infinite. */
|
d = -INFINITY; /* Negative infinite. */
|
||||||
} else {
|
} else {
|
||||||
d = strtod((char*)buf,&eptr);
|
d = strtod((char*)buf,&eptr);
|
||||||
if (buf[0] == '\0' || eptr[0] != '\0' || isnan(d)) {
|
if (buf[0] == '\0' || eptr[0] != '\0' || isnan(d)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user