mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use C++-style casts (#1576)
This commit is contained in:
@@ -37,7 +37,7 @@ static unsigned long long getRandomBits(unsigned count) {
|
||||
if (data == EOF) {
|
||||
exit(0);
|
||||
}
|
||||
randbits |= (unsigned long long)data << randcount;
|
||||
randbits |= static_cast<unsigned long long>(data) << randcount;
|
||||
randcount += 8;
|
||||
}
|
||||
unsigned long long result = randbits & ((1ULL << count) - 1);
|
||||
|
||||
Reference in New Issue
Block a user