Skip to content

Commit a1e14ea

Browse files
committed
Add ULL to constants which overflow 32 bits
1 parent 73b2898 commit a1e14ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ccutil/helpers.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class TRand {
6161
private:
6262
// Steps the generator to the next value.
6363
void Iterate() {
64-
seed_ *= 6364136223846793005;
65-
seed_ += 1442695040888963407;
64+
seed_ *= 6364136223846793005ULL;
65+
seed_ += 1442695040888963407ULL;
6666
}
6767

6868
// The current value of the seed.

0 commit comments

Comments
 (0)