From dfd7a194ed042083db93826b7fbc88d43290ed05 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 28 Oct 2018 09:32:59 +0000 Subject: Fix big int shifts of 0 --- src/types.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/types.cpp') diff --git a/src/types.cpp b/src/types.cpp index 7c526989f..f8ed17063 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -712,6 +712,8 @@ bool is_type_numeric(Type *t) { t = base_type(t); if (t->kind == Type_Basic) { return (t->Basic.flags & BasicFlag_Numeric) != 0; + } else if (t->kind == Type_Enum) { + return is_type_numeric(t->Enum.base_type); } // TODO(bill): Should this be here? if (t->kind == Type_Array) { -- cgit v1.2.3