| 769 | } |
| 770 | |
| 771 | int getLongLongFromObjectOrReply(client *c, robj *o, long long *target, const char *msg) { |
| 772 | long long value; |
| 773 | if (getLongLongFromObject(o, &value) != C_OK) { |
| 774 | if (msg != NULL) { |
| 775 | addReplyError(c,(char*)msg); |
| 776 | } else { |
| 777 | addReplyError(c,"value is not an integer or out of range"); |
| 778 | } |
| 779 | return C_ERR; |
| 780 | } |
| 781 | *target = value; |
| 782 | return C_OK; |
| 783 | } |
| 784 | |
| 785 | int getUnsignedLongLongFromObjectOrReply(client *c, robj *o, uint64_t *target, const char *msg) { |
| 786 | uint64_t value; |
no test coverage detected