Clean up range code for switch

This commit is contained in:
gingerBill
2018-02-17 18:34:14 +00:00
parent c341597657
commit 21432ba96e
2 changed files with 9 additions and 2 deletions
+7
View File
@@ -666,6 +666,13 @@ bool is_type_rune(Type *t) {
}
return false;
}
bool is_type_number(Type *t) {
t = core_type(t);
if (t->kind == Type_Basic) {
return (t->Basic.flags & BasicFlag_Numeric) != 0;
}
return false;
}
bool is_type_numeric(Type *t) {
t = core_type(t);
if (t->kind == Type_Basic) {