From 9f85fa784927f5b6ff07ce043eb46a3e9236760f Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 21 Oct 2026 15:53:41 +0200 Subject: Allow any word type for shift operators --- boot/type_check.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'boot/type_check.cc') 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(); -- cgit v1.2.3