mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 19:02:13 +00:00
Add to tests/internal
Turn repro code into a proper test, and delete superfluous files from Odin root.
This commit is contained in:
@@ -1249,7 +1249,6 @@ gb_internal bool is_type_unsigned(Type *t) {
|
||||
return (t->Basic.flags & BasicFlag_Unsigned) != 0;
|
||||
}
|
||||
if (t->kind == Type_Enum) {
|
||||
// TODO(slowhei): Is an enum's base type guaranteed to be TypeKind::Basic? Even if its backing type is implicitly int?
|
||||
return (t->Enum.base_type->Basic.flags & BasicFlag_Unsigned) != 0;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user