From 7210ee7d71d6f6e8116612bda6c304b15880bc9f Mon Sep 17 00:00:00 2001 From: Andrew Keeton Date: Sat, 17 Jan 2015 18:51:26 -0500 Subject: [PATCH] Fix range literal overflow. --- src/machine.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/machine.rs b/src/machine.rs index 570d4df..3ecc105 100644 --- a/src/machine.rs +++ b/src/machine.rs @@ -1230,8 +1230,8 @@ fn compare_with_y_register_test() { fn exclusive_or_test() { let mut machine = Machine::new(); - for a_before in 0..256 { - for val in 0..256 { + for a_before in 0us..256 { + for val in 0us..256 { machine.execute_instruction( (Instruction::LDA, OpInput::UseImmediate(a_before as u8)) );