diff --git a/Machines/Atari2600/Cartridges/CartridgePitfall2.hpp b/Machines/Atari2600/Cartridges/CartridgePitfall2.hpp index cd7337d82..9ee414d7d 100644 --- a/Machines/Atari2600/Cartridges/CartridgePitfall2.hpp +++ b/Machines/Atari2600/Cartridges/CartridgePitfall2.hpp @@ -36,7 +36,7 @@ class CartridgePitfall2: public Cartridge { } random_number_generator_ = (uint8_t)( (random_number_generator_ << 1) | - ~(( (random_number_generator_ >> 7) ^ + (~( (random_number_generator_ >> 7) ^ (random_number_generator_ >> 5) ^ (random_number_generator_ >> 4) ^ (random_number_generator_ >> 3)