Mercurial > hg > index.cgi
changeset 122:2be2649841f8
Fixed embarrassing off by one in insn_rel length calculation
author | lost@l-w.ca |
---|---|
date | Wed, 10 Aug 2011 19:05:49 -0600 |
parents | 27b51723b218 |
children | 74b4e9f23c62 |
files | lwasm/insn_rel.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lwasm/insn_rel.c Tue Aug 09 22:17:31 2011 -0600 +++ b/lwasm/insn_rel.c Wed Aug 10 19:05:49 2011 -0600 @@ -89,7 +89,7 @@ } else if (l -> lint == 16) { - l -> len = OPLEN(instab[l -> insn].ops[3]) + 1; + l -> len = OPLEN(instab[l -> insn].ops[3]) + 2; } // the offset calculation here depends on the length of this line!