diff lwasm/section.c @ 154:5ac1c4cd81a7

Make sections behave correctly again with the update to support . and * for os9
author lost@l-w.ca
date Sat, 27 Aug 2011 23:16:50 -0600
parents 7317fbe024af
children fc8386b13399
line wrap: on
line diff
--- a/lwasm/section.c	Sat Aug 27 00:23:19 2011 -0600
+++ b/lwasm/section.c	Sat Aug 27 23:16:50 2011 -0600
@@ -127,7 +127,8 @@
 	
 	lw_expr_destroy(l -> addr);
 	l -> addr = lw_expr_copy(s -> offset);
-	
+	lw_expr_destroy(l -> daddr);
+	l -> daddr = lw_expr_copy(s -> offset);
 	as -> csect = s;
 	as -> context = lwasm_next_context(as);