about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--subx/023check_operand_sizes.cc4
1 files changed, 2 insertions, 2 deletions
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
   }
 }