mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05: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:
|
||||
* they should always be able to store an int64_t value in integer
|
||||
* 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);
|
||||
v = ll;
|
||||
return v;
|
||||
}
|
||||
|
||||
@ -748,7 +750,7 @@ int streamParseIDOrReply(client *c, robj *o, streamID *id, uint64_t missing_seq)
|
||||
/* Parse <ms>.<seq> form. */
|
||||
char *dot = strchr(buf,'-');
|
||||
if (dot) *dot = '\0';
|
||||
uint64_t ms, seq;
|
||||
unsigned long long ms, seq;
|
||||
if (string2ull(buf,&ms) == 0) goto invalid;
|
||||
if (dot && string2ull(dot+1,&seq) == 0) goto invalid;
|
||||
if (!dot) seq = missing_seq;
|
||||
|
Loading…
Reference in New Issue
Block a user