mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 04:38:16 +00:00
Disallow zero sized map keys
This commit is contained in:
+1
-1
@@ -1921,7 +1921,7 @@ bool is_type_valid_for_keys(Type *t) {
|
|||||||
if (is_type_untyped(t)) {
|
if (is_type_untyped(t)) {
|
||||||
return false;
|
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) {
|
bool is_type_valid_bit_set_elem(Type *t) {
|
||||||
|
|||||||
Reference in New Issue
Block a user