From aff09967d194d062ae8d83c0fbe1edf158804ef9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 4 Mar 2016 10:45:10 +0100 Subject: Clean up, fix a few bugs, and add a test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/zsetu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/zsetu.c') diff --git a/src/zsetu.c b/src/zsetu.c index f37be7e..37fbf7c 100644 --- a/src/zsetu.c +++ b/src/zsetu.c @@ -11,8 +11,7 @@ zsetu(z_t a, unsigned long long int b) SET_SIGNUM(a, 0); return; } - if (a->alloced < SIZE_MULTIPLE(b, *(a->chars))) - zahl_realloc(a, SIZE_MULTIPLE(b, *(a->chars))); + ENSURE_SIZE(a, SIZE_MULTIPLE(b, *(a->chars))); SET_SIGNUM(a, 1); a->used = 0; while (b) { -- cgit v1.2.3-70-g09d2