# HG changeset patch # User lost@l-w.ca # Date 1313024749 21600 # Node ID 2be2649841f805db4cf5950dc616c2b05583dac0 # Parent 27b51723b21872985db8106a56285e10b0a01235 Fixed embarrassing off by one in insn_rel length calculation diff -r 27b51723b218 -r 2be2649841f8 lwasm/insn_rel.c --- 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!