mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Consistently use uppercase hex digits
This commit is contained in:
@@ -53,7 +53,7 @@ static unsigned long long getRandomBits(unsigned count) {
|
||||
randbits |= (unsigned long long)data << randcount;
|
||||
randcount += 8;
|
||||
}
|
||||
unsigned long long result = randbits & ((1ull << count) - 1);
|
||||
unsigned long long result = randbits & ((1ULL << count) - 1);
|
||||
randbits >>= count;
|
||||
randcount -= count;
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user