diff lwasm/os9.c @ 142:697bc543368c

Implement distinction between . and * for OS9 modules
author lost@l-w.ca
date Fri, 19 Aug 2011 23:55:40 -0600
parents 3fc568436721
children 86d097dceebc
line wrap: on
line diff
--- a/lwasm/os9.c	Fri Aug 19 20:36:43 2011 -0600
+++ b/lwasm/os9.c	Fri Aug 19 23:55:40 2011 -0600
@@ -114,6 +114,10 @@
 	lw_expr_destroy(l -> addr);
 	l -> addr = lw_expr_build(lw_expr_type_int, 0);
 
+	// likewise for data pointer
+	lw_expr_destroy(l -> daddr);
+	l -> daddr = lw_expr_build(lw_expr_type_int, 0);
+
 	// init crc
 	as -> inmod = 1;