mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 17:34:34 +00:00
Disallow zero sized map keys
This commit is contained in:
@@ -1921,7 +1921,7 @@ bool is_type_valid_for_keys(Type *t) {
|
||||
if (is_type_untyped(t)) {
|
||||
return false;
|
||||
}
|
||||
return is_type_comparable(t);
|
||||
return type_size_of(t) > 0 && is_type_comparable(t);
|
||||
}
|
||||
|
||||
bool is_type_valid_bit_set_elem(Type *t) {
|
||||
|
||||
Reference in New Issue
Block a user