diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-18 13:31:47 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-18 13:31:47 +0200 |
| commit | 4f77ad5d019618893c59a0f8d5bfa6b98e50a3be (patch) | |
| tree | d9e01460ecf94a491be476fbca76b6608276d967 /boot/name_analysis.cc | |
| parent | 4b7c87a9b53f5317e9f7982bd779d53a66960bdc (diff) | |
| download | elna-4f77ad5d019618893c59a0f8d5bfa6b98e50a3be.tar.gz | |
Make Int and Word aliases to fixed-size types
Diffstat (limited to 'boot/name_analysis.cc')
| -rw-r--r-- | boot/name_analysis.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/boot/name_analysis.cc b/boot/name_analysis.cc index 0889ef9..4b69f9c 100644 --- a/boot/name_analysis.cc +++ b/boot/name_analysis.cc @@ -662,7 +662,7 @@ namespace elna::boot auto variable_type = lookup_primitive_type("Int"); this->bag.enter("count", std::make_shared<variable_info>(variable_type, false)); - variable_type = lookup_primitive_type("Char"); + variable_type = lookup_primitive_type("Word8"); variable_type = type(std::make_shared<pointer_type>(variable_type)); variable_type = type(std::make_shared<pointer_type>(variable_type)); this->bag.enter("parameters", std::make_shared<variable_info>(variable_type, false)); @@ -924,7 +924,7 @@ namespace elna::boot this->current_type = type(); } - void name_analysis_visitor::visit(literal<unsigned char> *literal) + void name_analysis_visitor::visit(literal<std::uint32_t> *literal) { literal->type_decoration = lookup_primitive_type("Char"); this->current_type = type(); @@ -939,7 +939,7 @@ namespace elna::boot void name_analysis_visitor::visit(literal<std::string> *literal) { literal->type_decoration = type(std::make_shared<slice_type>( - type(std::make_shared<constant_type>(lookup_primitive_type("Char"))))); + type(std::make_shared<constant_type>(lookup_primitive_type("Word8"))))); this->current_type = type(); } |
