aboutsummaryrefslogtreecommitdiff
path: root/semantics.c
diff options
context:
space:
mode:
Diffstat (limited to 'semantics.c')
-rw-r--r--semantics.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/semantics.c b/semantics.c
index 014f7e5..e4a1cee 100644
--- a/semantics.c
+++ b/semantics.c
@@ -1312,7 +1312,11 @@ ExpType semantics_exp(CNode *p, CScope_t scope) {
res = exp_check_logical(op1, op2, p, '&');
break;
case OPT_SHL:
+ res = exp_check_bitwise(op1, op2, p, 'l');
+ break;
case OPT_SHR:
+ res = exp_check_bitwise(op1, op2, p, 'r');
+ break;
case '|':
case '^':
res = exp_check_bitwise(op1, op2, p, p->rec.subtype);