Fix big int shifts of 0

This commit is contained in:
gingerBill committed 2018-10-28 09:32:59 +00:00
1 parent 2ddb27869b
commit dfd7a194ed
2 files changed
+16

No files matched your search

+2
View File
@@ -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) {