Use (uint64_t)1 instead of 1l / 1ul

This commit is contained in:
Vitaliy Filippov
2022-04-16 01:48:14 +03:00
parent 1493823f9e
commit 842ba8b831
14 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -144,9 +144,9 @@ resume_3:
}
else
{
if ((op_data->fact_ver & (1ul<<(64-PG_EPOCH_BITS) - 1)) == (1ul<<(64-PG_EPOCH_BITS) - 1))
if ((op_data->fact_ver & ((uint64_t)1 << (64-PG_EPOCH_BITS) - 1)) == ((uint64_t)1 << (64-PG_EPOCH_BITS) - 1))
{
assert(pg.epoch != ((1ul << PG_EPOCH_BITS)-1));
assert(pg.epoch != (((uint64_t)1 << PG_EPOCH_BITS)-1));
pg.epoch++;
}
op_data->target_ver = op_data->fact_ver + 1;