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
+1 -1
View File
@@ -437,7 +437,7 @@ void pg_t::calc_object_states(int log_level)
st.walk();
if (this->state & (PG_DEGRADED|PG_LEFT_ON_DEAD))
{
assert(epoch != ((1ul << PG_EPOCH_BITS)-1));
assert(epoch != (((uint64_t)1 << PG_EPOCH_BITS)-1));
epoch++;
}
}