mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-06 06:38:20 +00:00
fix Error: Missing return statement at the end of the procedure pop_fixed_capacity_dynamic_array
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user