diff options
Diffstat (limited to 'lpprint.c')
-rw-r--r-- | lpprint.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -137,8 +137,9 @@ void printinst (const Instruction *op, const Instruction *p) { | |||
137 | } | 137 | } |
138 | 138 | ||
139 | 139 | ||
140 | void printpatt (Instruction *p, int n) { | 140 | void printpatt (Instruction *p) { |
141 | Instruction *op = p; | 141 | Instruction *op = p; |
142 | uint n = op[-1].codesize - 1; | ||
142 | while (p < op + n) { | 143 | while (p < op + n) { |
143 | printinst(op, p); | 144 | printinst(op, p); |
144 | p += sizei(p); | 145 | p += sizei(p); |