Fix continue to outer loop instead of inner loop

This commit is contained in:
Tarık B.
2026-03-17 01:31:45 +01:00
parent 84a4dcbe16
commit a8c17c36b9

View File

@@ -494,14 +494,14 @@ parse_and_set_pointer_by_type :: proc(ptr: rawptr, str: string, type_info: ^runt
valid_names := enum_type_info.names
underlying_values := enum_type_info.values
#no_bounds_check for name in names {
#no_bounds_check outer_loop: for name in names {
found: bool
#no_bounds_check for valid_name, index in valid_names {
if name == valid_name {
shift := u128(underlying_values[index]) - u128(specific_type_info.lower)
value |= u128(1 << shift)
found = true
continue
continue outer_loop
}
}
if !found {