From fa65cc2058cbf1bf3f13a4280d963cf12f4c3fd7 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 5 Nov 2016 12:57:01 -0400 Subject: [PATCH] Resolved type conversion error. --- Components/6522/6522.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Components/6522/6522.hpp b/Components/6522/6522.hpp index 60fe8073c..4660d75f7 100644 --- a/Components/6522/6522.hpp +++ b/Components/6522/6522.hpp @@ -243,8 +243,8 @@ template class MOS6522 { _registers.timer[0] --;\ \ _registers.timer[1] --; \ - if(_registers.next_timer[0] >= 0) { _registers.timer[0] = _registers.next_timer[0]; _registers.next_timer[0] = -1; }\ - if(_registers.next_timer[1] >= 0) { _registers.timer[1] = _registers.next_timer[1]; _registers.next_timer[1] = -1; }\ + if(_registers.next_timer[0] >= 0) { _registers.timer[0] = (uint16_t)_registers.next_timer[0]; _registers.next_timer[0] = -1; }\ + if(_registers.next_timer[1] >= 0) { _registers.timer[1] = (uint16_t)_registers.next_timer[1]; _registers.next_timer[1] = -1; }\ // IRQ is raised on the half cycle after overflow #define phase1() \