# HG changeset patch # User lost@l-w.ca # Date 1315627687 21600 # Node ID 35f7ce3ef85776074526bfb3e633a07acdde8b90 # Parent f8b07153abc47ddedcd13f86824374f30a66b5e3 Fix stupid thinko when making all instances of a constant section start at 0 diff -r f8b07153abc4 -r 35f7ce3ef857 lwasm/section.c --- a/lwasm/section.c Wed Sep 07 21:59:10 2011 -0600 +++ b/lwasm/section.c Fri Sep 09 22:08:07 2011 -0600 @@ -140,7 +140,7 @@ // cause all instances of "constant" sections to start at 0 if (s -> flags & section_flag_constant) - s -> offset = 0; + s -> offset = lw_expr_build(lw_expr_type_int, 0); lw_expr_destroy(l -> addr); l -> addr = lw_expr_copy(s -> offset); lw_expr_destroy(l -> daddr);