diff options
author | Gavin Howard <yzena.tech@gmail.com> | 2020-10-26 23:00:47 -0600 |
---|---|---|
committer | Gavin Howard <yzena.tech@gmail.com> | 2020-11-21 14:48:23 -0700 |
commit | aadc19a0931c0531b436bbe1bb7f37350bb43134 (patch) | |
tree | 023c324cb09b4461729f636fd3e529756edf6ca4 /src/history.c | |
parent | 79854608926c2df522b475b9d7c796fc6691b7b8 (diff) | |
download | platform_external_bc-aadc19a0931c0531b436bbe1bb7f37350bb43134.tar.gz platform_external_bc-aadc19a0931c0531b436bbe1bb7f37350bb43134.tar.bz2 platform_external_bc-aadc19a0931c0531b436bbe1bb7f37350bb43134.zip |
Make bc_vec_grow available to outside procedures
This is to hopefully make some of them more efficient.
Diffstat (limited to 'src/history.c')
-rw-r--r-- | src/history.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/history.c b/src/history.c index b0c1a37d..d415f07f 100644 --- a/src/history.c +++ b/src/history.c @@ -672,7 +672,7 @@ static void bc_history_refresh(BcHistory *h) { */ static void bc_history_edit_insert(BcHistory *h, const char *cbuf, size_t clen) { - bc_vec_expand(&h->buf, bc_vm_growSize(h->buf.len, clen)); + bc_vec_grow(&h->buf, clen); if (h->pos == BC_HIST_BUF_LEN(h)) { |