| 438 | } |
| 439 | |
| 440 | int checkType(client *c, robj_roptr o, int type) { |
| 441 | /* A NULL is considered an empty key */ |
| 442 | if (o && o->type != type) { |
| 443 | addReplyErrorObject(c,shared.wrongtypeerr); |
| 444 | return 1; |
| 445 | } |
| 446 | return 0; |
| 447 | } |
| 448 | |
| 449 | int isSdsRepresentableAsLongLong(const char *s, long long *llval) { |
| 450 | return string2ll(s,sdslen(s),llval) ? C_OK : C_ERR; |
no test coverage detected