From d5f75ffe86abcd6c59e02f0a59c0e4d3d73d8f70 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 26 Jul 2018 09:02:06 -0700 Subject: 4419 Unshadow variable. Thanks Max Bernstein for pointing this out. --- subx/023check_operand_sizes.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subx') diff --git a/subx/023check_operand_sizes.cc b/subx/023check_operand_sizes.cc index cec625af..8ad3b1aa 100644 --- a/subx/023check_operand_sizes.cc +++ b/subx/023check_operand_sizes.cc @@ -30,8 +30,8 @@ void check_operand_bounds(/*const*/ program& p) { const segment& seg = p.segments.at(0); for (int i = 0; i < SIZE(seg.lines); ++i) { const line& inst = seg.lines.at(i); - for (int i = first_operand(inst); i < SIZE(inst.words); ++i) - check_operand_bounds(inst.words.at(i)); + for (int j = first_operand(inst); j < SIZE(inst.words); ++j) + check_operand_bounds(inst.words.at(j)); if (trace_contains_errors()) return; // stop at the first mal-formed instruction } } -- cgit 1.4.1-2-gfad0