diff options
| author | gingerBill <bill@gingerbill.org> | 2022-08-26 22:21:19 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-08-26 22:21:19 +0100 |
| commit | 96be4947306cbeb7fa792d5f36c40d8a3704e4c1 (patch) | |
| tree | 8d0b33bcabc423d6983d47593107cc2e37f44baf /core/runtime | |
| parent | 12c8db927b11218de5fa491af9bc28dee392e0a0 (diff) | |
Fix `append_nothing`
Diffstat (limited to 'core/runtime')
| -rw-r--r-- | core/runtime/core_builtin.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime/core_builtin.odin b/core/runtime/core_builtin.odin index b87492c52..e3960088d 100644 --- a/core/runtime/core_builtin.odin +++ b/core/runtime/core_builtin.odin @@ -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) |