Closed
Description
Given 2^32
is a common enough mistake to make, to the point that GCC is adding a lint for it, we probably should lint 2 ^ 8
, 2 ^ 16
, 2 ^ 32
and 2 ^ 64
as well and suggest 2u64.pow(x)
or even better std::u64::MAX
.
Given 2^32
is a common enough mistake to make, to the point that GCC is adding a lint for it, we probably should lint 2 ^ 8
, 2 ^ 16
, 2 ^ 32
and 2 ^ 64
as well and suggest 2u64.pow(x)
or even better std::u64::MAX
.