diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-08-17 22:27:38 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-08-17 22:27:38 -0700 |
commit | 56ff4d38c78dd99873017c075861efefe5428bad (patch) | |
tree | dfbf0d7c141b9aa9d34381699c2035bddfb9528c /txr.c | |
parent | 25a3e10e7aed58c8745fdadc87b3b26e8b51523e (diff) | |
download | txr-56ff4d38c78dd99873017c075861efefe5428bad.tar.gz txr-56ff4d38c78dd99873017c075861efefe5428bad.tar.bz2 txr-56ff4d38c78dd99873017c075861efefe5428bad.zip |
vec-set-length maintenance.
* lib.c (vec_set_length): Check new length against INT_PTR_MAX
rather than size_t limit. We want to keep the length a fixnum.
If the allocation needs to increase, grow it by 25%, not by
doubling it.
Diffstat (limited to 'txr.c')
0 files changed, 0 insertions, 0 deletions