diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-05-13 17:25:41 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-05-13 17:25:41 +0200 |
commit | f98e33643e981b0f0b67bacd44e49a66cb29c119 (patch) | |
tree | 2025a0b3c226e52635170cb52341b1748a95b354 | |
parent | 6c2dd2932dff268b5b09c6ba7d3696f32ca26eac (diff) | |
download | compilertests-f98e33643e981b0f0b67bacd44e49a66cb29c119.tar.gz compilertests-f98e33643e981b0f0b67bacd44e49a66cb29c119.tar.bz2 |
reverted size of boolean to 4 for now
-rw-r--r-- | ecomp-c/ec.c | 3 | ||||
-rw-r--r-- | ecomp-c/tests/boolean_variable.easm | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ecomp-c/ec.c b/ecomp-c/ec.c index 61791f8..d0d761e 100644 --- a/ecomp-c/ec.c +++ b/ecomp-c/ec.c @@ -1309,7 +1309,8 @@ static void register_internal_types( Scope *scope ) type_symbol->size = 4; type_symbol = insert_symbol( current_scope, "boolean", SYMBOL_CLASS_TYPE ); - type_symbol->size = 1; + /* TODO: for now, till we have alignment and stuff sorted out */ + type_symbol->size = 4; const_symbol = insert_symbol( current_scope, "false", SYMBOL_CLASS_CONSTANT ); const_symbol->type = type_symbol; diff --git a/ecomp-c/tests/boolean_variable.easm b/ecomp-c/tests/boolean_variable.easm index a884de7..13c5493 100644 --- a/ecomp-c/tests/boolean_variable.easm +++ b/ecomp-c/tests/boolean_variable.easm @@ -31,6 +31,6 @@ push eax pop eax mov [flag], eax hlt -flag: db $00 +flag: dd $00000000 b: dd $00000000 a: dd $00000000 |