From 81a0df76cbcd46799134e688dabb8dc870da5351 Mon Sep 17 00:00:00 2001 From: Mustafa Quraish Date: Sat, 5 Feb 2022 01:38:34 -0500 Subject: Add support for some more binary ops: |, &, ^ --- src/types.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/types.c') diff --git a/src/types.c b/src/types.c index c44f88d..c8a9b72 100644 --- a/src/types.c +++ b/src/types.c @@ -298,6 +298,9 @@ Node *handle_binary_expr_types(Node *node, Token *token) case OP_GT: case OP_LEQ: case OP_GEQ: + case OP_BWAND: + case OP_BWOR: + case OP_XOR: case OP_AND: case OP_OR: { node->expr_type = type_new(TYPE_INT); -- cgit v1.2.3