Merge pull request #6441 from ZZZWojta/fix-missing-return-in-pop_fixed_capacity_dynamic_array

fix Error: Missing return statement at the end of the procedure pop_fixed_capacity_dynamic_array
This commit is contained in:
Jeroen van Rijn
2026-03-17 21:03:56 +01:00
committed by GitHub

View File

@@ -258,6 +258,7 @@ pop_fixed_capacity_dynamic_array :: proc(array: ^$T/[dynamic; $N]$E, loc := #cal
end := rawptr(uintptr(array) + uintptr(elem_size*(len(array)-1)))
intrinsics.mem_copy_non_overlapping(&res, end, elem_size)
(^Raw_Fixed_Capacity_Dynamic_Array(N, E))(array).len -= 1
return res
}