Commit 4cd277b4 authored by Simon Marlow's avatar Simon Marlow

Fix bugs in debug printing

parent 83cf31e4
......@@ -288,7 +288,7 @@ void disassemble( StgBCO *bco )
debugBelch("BCO\n" );
pc = 0;
while (pc <= nbcs) {
while (pc < nbcs) {
debugBelch("\t%2d: ", pc );
pc = disInstr ( bco, pc );
}
......@@ -312,7 +312,6 @@ void disassemble( StgBCO *bco )
debugBelch("\n");
debugBelch("\n");
ASSERT(pc == nbcs+1);
}
#endif /* DEBUG */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment