Mercurial > hg > index.cgi
changeset 178:35f7ce3ef857
Fix stupid thinko when making all instances of a constant section start at 0
author | lost@l-w.ca |
---|---|
date | Fri, 09 Sep 2011 22:08:07 -0600 |
parents | f8b07153abc4 |
children | 606123758641 |
files | lwasm/section.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);