mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Change return to panic
This commit is contained in:
@@ -418,7 +418,7 @@ map_insert_hash_dynamic :: proc "odin" (#no_alias m: ^Raw_Map, #no_alias info: ^
|
|||||||
swap_loop: for {
|
swap_loop: for {
|
||||||
if distance > mask {
|
if distance > mask {
|
||||||
// Failed to find an empty slot and prevent infinite loop
|
// Failed to find an empty slot and prevent infinite loop
|
||||||
return 0
|
panic("unable to insert into a map")
|
||||||
}
|
}
|
||||||
|
|
||||||
element_hash := hs[pos]
|
element_hash := hs[pos]
|
||||||
|
|||||||
Reference in New Issue
Block a user