diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-03-06 14:59:25 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-03-06 14:59:25 -0800 |
commit | fbb8a014d14fc8887529f344b128900dfc581a4d (patch) | |
tree | b99418f7faf58ffe9090fa70e48f24172f154b10 /lib.c | |
parent | 68cf1642e9b1d0ae04f6bdeb6b7c8a2fd5ac5e9e (diff) | |
download | txr-fbb8a014d14fc8887529f344b128900dfc581a4d.tar.gz txr-fbb8a014d14fc8887529f344b128900dfc581a4d.tar.bz2 txr-fbb8a014d14fc8887529f344b128900dfc581a4d.zip |
Fix in chk_manage_vec resizing from zero.
* lib.c (bounding_pow_two): Eliminate bogus zero versus
non-zero case check in return which causes the function
to wrongly map 1 to 0, so that chk_manage_vec is then
not able to adjust a vector to size 1.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2346,7 +2346,7 @@ static size_t bounding_pow_two(size_t s) s |= (t >> 16); } - return s ? s + 1 : s; + return s + 1; } mem_t *chk_manage_vec(mem_t *old, size_t oldfilled, size_t newfilled, |