mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-10 23:05:32 -04:00
Disallow zero sized map keys
This commit is contained in:
1 parent
ea263b8cc5
commit
d77269dee2
1 file changed
+1
-1
+1
-1
@@ -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