diff options
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(); } |
