From 68702158711deb4b4c9e84ebaf73da943cb7157e Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 5 Jun 2018 23:15:33 +0200 Subject: fix const retrieval --- src/generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/generator.c b/src/generator.c index ab3777c..f35b695 100644 --- a/src/generator.c +++ b/src/generator.c @@ -407,7 +407,7 @@ int gen_value(const char ident[], Scope scope) { case GLOBAL: if (is_read_only(ident, scope)) - fprintf(output, "push QWORD %s\n", ident); + fprintf(output, "push QWORD [%s]\n", ident); else fprintf(output, "push QWORD [globals + %d] ;%s\n", glo_get_addr(ident), ident); -- cgit v1.2.3