diff lwasm/insn_rel.c @ 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 7b0716264251
children 6f2e18f1fe67
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!