mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 04:10:07 +00:00
Fix append_nothing
This commit is contained in:
@@ -425,7 +425,7 @@ append_string :: proc(array: ^$T/[dynamic]$E/u8, args: ..string, loc := #caller_
|
|||||||
@builtin
|
@builtin
|
||||||
append_nothing :: proc(array: ^$T/[dynamic]$E, loc := #caller_location) -> int {
|
append_nothing :: proc(array: ^$T/[dynamic]$E, loc := #caller_location) -> int {
|
||||||
if array == nil {
|
if array == nil {
|
||||||
return
|
return 0
|
||||||
}
|
}
|
||||||
prev_len := len(array)
|
prev_len := len(array)
|
||||||
resize(array, len(array)+1)
|
resize(array, len(array)+1)
|
||||||
|
|||||||
Reference in New Issue
Block a user