MCPcopy Create free account
hub / github.com/F-Stack/f-stack / getDoubleFromObjectOrReply

Function getDoubleFromObjectOrReply

app/redis-6.2.6/src/object.c:634–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634int getDoubleFromObjectOrReply(client *c, robj *o, double *target, const char *msg) {
635 double value;
636 if (getDoubleFromObject(o, &value) != C_OK) {
637 if (msg != NULL) {
638 addReplyError(c,(char*)msg);
639 } else {
640 addReplyError(c,"value is not a valid float");
641 }
642 return C_ERR;
643 }
644 *target = value;
645 return C_OK;
646}
647
648int getLongDoubleFromObject(robj *o, long double *target) {
649 long double value;

Callers 5

extractLongLatOrReplyFunction · 0.85
extractDistanceOrReplyFunction · 0.85
extractBoxOrReplyFunction · 0.85
zaddGenericCommandFunction · 0.85

Calls 2

getDoubleFromObjectFunction · 0.85
addReplyErrorFunction · 0.85

Tested by

no test coverage detected