Skip to content

Commit

Permalink
Add ULL to constants which overflow 32 bits
Browse files Browse the repository at this point in the history
  • Loading branch information
ROMitat committed Sep 9, 2015
1 parent 73b2898 commit a1e14ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ccutil/helpers.h
Expand Up @@ -61,8 +61,8 @@ class TRand {
private:
// Steps the generator to the next value.
void Iterate() {
seed_ *= 6364136223846793005;
seed_ += 1442695040888963407;
seed_ *= 6364136223846793005ULL;
seed_ += 1442695040888963407ULL;
}

// The current value of the seed.
Expand Down

0 comments on commit a1e14ea

Please sign in to comment.