Start at 0, not 1.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
int op_num = 0;
while (i.have_op()) {
int op = i.get_op();
- op_num++;
switch (op) {
case Transaction::OP_NOP:
f->open_object_section("nop");
f->close_section();
return;
}
+ op_num++;
}
f->close_section();
}
int op_num = 0;
while (i.have_op()) {
int op = i.get_op();
- op_num++;
switch (op) {
case Transaction::OP_NOP:
break;
out << op_num << ": unknown op code " << op << "\n";
return;
}
+ op_num++;
}
}