aboutsummaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-10-21 15:53:41 +0200
committerEugen Wissner <belka@caraus.de>2026-10-21 15:53:46 +0200
commit9f85fa784927f5b6ff07ce043eb46a3e9236760f (patch)
tree3b1edda7687b9d15cc59b83e21358424aa625131 /boot
parent7440060f179e35fe63155a149bb5003c97e12013 (diff)
downloadelna-9f85fa784927f5b6ff07ce043eb46a3e9236760f.tar.gz
Allow any word type for shift operators
Diffstat (limited to 'boot')
-rw-r--r--boot/type_check.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/boot/type_check.cc b/boot/type_check.cc
index 5033ffd..2f15462 100644
--- a/boot/type_check.cc
+++ b/boot/type_check.cc
@@ -1711,8 +1711,7 @@ namespace elna::boot
break;
case shift_left:
case shift_right:
- valid = is_integral_type(lhs_resolved)
- && is_primitive_type(rhs_resolved, "Word");
+ valid = is_integral_type(lhs_resolved) && is_word_type(rhs_resolved);
break;
default:
__builtin_unreachable();