aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorTetralux <tetralux@teknik.io>2020-05-15 03:54:32 +0000
committerTetralux <tetralux@teknik.io>2020-05-15 03:54:32 +0000
commitdc236d68300d54645498b0caa9114d84be92769a (patch)
tree8beb5ddb4c74f0917d94f0f1307312bf5fcb9df5 /src/ir_print.cpp
parent8b066b24563a7b2644c1128d267d90f16c7b5a73 (diff)
Fix container.Array.array_push_back_elems
We were previously using array_slice to get the storage that we were copying the new elements into, using the current length as the offset: `copy(data[len:], ..elems)` However, array_slice returns a slice over `data[0:len]` -- we were using it as if it was `data[0:cap]`. Add array_cap_slice that does this instead. :^)
Diffstat (limited to 'src/ir_print.cpp')
0 files changed, 0 insertions, 0 deletions