mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
modules/client/sync: Fix unattended narrowing conversion.
This commit is contained in:
parent
0c1970af0f
commit
3b5bdd7cc8
1 changed files with 2 additions and 1 deletions
|
@ -485,6 +485,7 @@ try
|
|||
};
|
||||
|
||||
char buf[64];
|
||||
assert(!data.phased || next_batch >= 0UL);
|
||||
const string_view &next_batch_token
|
||||
{
|
||||
// The polylog phased since token. We pack two numbers separted by a '_'
|
||||
|
@ -493,7 +494,7 @@ try
|
|||
// second part is the next_batch upper-bound integer which is a snapshot
|
||||
// of the server's sequence number when the phased sync started.
|
||||
data.phased?
|
||||
make_since(buf, m::events::range{next_batch, data.range.second}):
|
||||
make_since(buf, m::events::range{uint64_t(next_batch), data.range.second}):
|
||||
|
||||
// The normal integer since token.
|
||||
make_since(buf, next_batch)
|
||||
|
|
Loading…
Reference in a new issue