mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Streams: fix a few type mismatches in t_stream.c.
This commit is contained in:
parent
60d26acfc8
commit
2869284e44
@ -103,8 +103,10 @@ int64_t lpGetInteger(unsigned char *ele) {
|
|||||||
/* The following code path should never be used for how listpacks work:
|
/* The following code path should never be used for how listpacks work:
|
||||||
* they should always be able to store an int64_t value in integer
|
* they should always be able to store an int64_t value in integer
|
||||||
* encoded form. However the implementation may change. */
|
* encoded form. However the implementation may change. */
|
||||||
int retval = string2ll((char*)e,v,&v);
|
long long ll;
|
||||||
|
int retval = string2ll((char*)e,v,&ll);
|
||||||
serverAssert(retval != 0);
|
serverAssert(retval != 0);
|
||||||
|
v = ll;
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -748,7 +750,7 @@ int streamParseIDOrReply(client *c, robj *o, streamID *id, uint64_t missing_seq)
|
|||||||
/* Parse <ms>.<seq> form. */
|
/* Parse <ms>.<seq> form. */
|
||||||
char *dot = strchr(buf,'-');
|
char *dot = strchr(buf,'-');
|
||||||
if (dot) *dot = '\0';
|
if (dot) *dot = '\0';
|
||||||
uint64_t ms, seq;
|
unsigned long long ms, seq;
|
||||||
if (string2ull(buf,&ms) == 0) goto invalid;
|
if (string2ull(buf,&ms) == 0) goto invalid;
|
||||||
if (dot && string2ull(dot+1,&seq) == 0) goto invalid;
|
if (dot && string2ull(dot+1,&seq) == 0) goto invalid;
|
||||||
if (!dot) seq = missing_seq;
|
if (!dot) seq = missing_seq;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user