Skip to content

Commit

Permalink
Fixing (justified) compilation warning on W3I6MV. 1uL is not a 64-bit…
Browse files Browse the repository at this point in the history
… value.

Copied from Perforce
 Change: 190722
 ServerID: perforce.ravenbrook.com
  • Loading branch information
rptb1 committed Apr 5, 2016
1 parent 84f0d43 commit 2eadfb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/testlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ size_t rnd_align(size_t min, size_t max)
unsigned log2min = sizelog2(min);
unsigned log2max = sizelog2(max);
Insist(min <= max);
Insist(1uL << log2min == min);
Insist(1uL << log2max == max);
Insist((size_t)1 << log2min == min);
Insist((size_t)1 << log2max == max);
if (log2min < log2max)
return min << (rnd() % (log2max - log2min + 1));
else
Expand Down

0 comments on commit 2eadfb8

Please sign in to comment.