mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-31 18:32:12 +00:00
Fix big int shifts of 0
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user