Fix append_nothing

This commit is contained in:
gingerBill
2022-08-26 22:21:19 +01:00
parent 12c8db927b
commit 96be494730

View File

@@ -425,7 +425,7 @@ append_string :: proc(array: ^$T/[dynamic]$E/u8, args: ..string, loc := #caller_
@builtin
append_nothing :: proc(array: ^$T/[dynamic]$E, loc := #caller_location) -> int {
if array == nil {
return
return 0
}
prev_len := len(array)
resize(array, len(array)+1)