diff options
Diffstat (limited to 'src/sort.c')
-rw-r--r-- | src/sort.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sort.c b/src/sort.c index 7feae9206..4b300d868 100644 --- a/src/sort.c +++ b/src/sort.c @@ -193,7 +193,7 @@ void sortCommand(client *c) { long limit_start = 0, limit_count = -1, start, end; int j, dontsort = 0, vectorlen; int getop = 0; /* GET operation counter */ - int int_convertion_error = 0; + int int_conversion_error = 0; int syntax_error = 0; robj *sortval, *sortby = NULL, *storekey = NULL; redisSortObject *vector; /* Resulting vector to sort */ @@ -469,7 +469,7 @@ void sortCommand(client *c) { if (eptr[0] != '\0' || errno == ERANGE || isnan(vector[j].u.score)) { - int_convertion_error = 1; + int_conversion_error = 1; } } else if (byval->encoding == OBJ_ENCODING_INT) { /* Don't need to decode the object if it's @@ -501,7 +501,7 @@ void sortCommand(client *c) { /* Send command output to the output buffer, performing the specified * GET/DEL/INCR/DECR operations if any. */ outputlen = getop ? getop*(end-start+1) : end-start+1; - if (int_convertion_error) { + if (int_conversion_error) { addReplyError(c,"One or more scores can't be converted into double"); } else if (storekey == NULL) { /* STORE option not specified, sent the sorting result to client */ |