aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2018-06-05 22:52:26 +0200
committerpacien2018-06-05 22:52:26 +0200
commit1c1ba0e8cd1f7cb17b04626b7ef3cf9fcbe520ab (patch)
tree64335ff62205ce1153989a60150b4c06a476f60e
parent97ff7dd6abf007f100c0b12c67702f98c45701c3 (diff)
downloadtpc-compiler-1c1ba0e8cd1f7cb17b04626b7ef3cf9fcbe520ab.tar.gz
fix global const decl
-rw-r--r--src/generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generator.c b/src/generator.c
index 333dd5b..60a2b89 100644
--- a/src/generator.c
+++ b/src/generator.c
@@ -102,7 +102,7 @@ void gen_const(const char name[], int value, Scope scope) {
102 102
103 case GLOBAL: 103 case GLOBAL:
104 glo_addConst(name); 104 glo_addConst(name);
105 fprintf(output, "%s: db QWORD %d\n", name, value); 105 fprintf(output, "%s dq %d\n", name, value);
106 return; 106 return;
107 } 107 }
108} 108}