aboutsummaryrefslogtreecommitdiff
path: root/boot/type_check.cc
diff options
context:
space:
mode:
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)
{