diff --git a/Components/6845/CRTC6845.hpp b/Components/6845/CRTC6845.hpp index 289f25b1c..c074794c5 100644 --- a/Components/6845/CRTC6845.hpp +++ b/Components/6845/CRTC6845.hpp @@ -74,7 +74,7 @@ template class CRTC6845 { line_is_visible_ = true; line_counter_ = 0; is_in_adjustment_period_ = false; - line_address_ = (registers_[12] << 8) | registers_[13]; + line_address_ = (uint16_t)((registers_[12] << 8) | registers_[13]); bus_state_.refresh_address = line_address_; } } else {