aboutsummaryrefslogtreecommitdiff
path: root/boot/type_check.cc
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-08-13 22:55:06 +0200
committerEugen Wissner <belka@caraus.de>2026-08-13 22:55:06 +0200
commitbf7416a3ef9f0b787dcaebf816f3f3e6e385ff42 (patch)
tree26359c705133dbd8e98f06483008a720d0dae9d7 /boot/type_check.cc
parentae29de96c94e5c582f4424804464cdd29bf2a013 (diff)
downloadelna-bf7416a3ef9f0b787dcaebf816f3f3e6e385ff42.tar.gz
Implement fixed-size integers
Diffstat (limited to 'boot/type_check.cc')
-rw-r--r--boot/type_check.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/type_check.cc b/boot/type_check.cc
index 78e975a..b1739d9 100644
--- a/boot/type_check.cc
+++ b/boot/type_check.cc
@@ -1038,11 +1038,11 @@ namespace elna::boot
bool narrowed{ false };
if (expression->value.is_signed())
{
- narrowed = expression->value.fit_into(target.int_properties.size);
+ narrowed = expression->value.fit_into(target.int_properties.front().size);
}
else
{
- narrowed = expression->value.fit_into(target.word_properties.size);
+ narrowed = expression->value.fit_into(target.word_properties.front().size);
}
if (!narrowed)
{