diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-03-14 17:56:37 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-03-14 17:56:37 +0100 |
| commit | b2c44d8c961090c2773f3a98d12fcafc7f5c5b2b (patch) | |
| tree | 8d7d19fd6ebd768023b3030d3e7b69d985fbf1c5 /src/ztrunc.c | |
| parent | Fix so that no workaround is required. (diff) | |
| download | libzahl-b2c44d8c961090c2773f3a98d12fcafc7f5c5b2b.tar.gz libzahl-b2c44d8c961090c2773f3a98d12fcafc7f5c5b2b.tar.bz2 libzahl-b2c44d8c961090c2773f3a98d12fcafc7f5c5b2b.tar.xz | |
Mostly optimisations
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/ztrunc.c')
| -rw-r--r-- | src/ztrunc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ztrunc.c b/src/ztrunc.c index 91d2a92..e1a330c 100644 --- a/src/ztrunc.c +++ b/src/ztrunc.c @@ -29,7 +29,5 @@ ztrunc(z_t a, z_t b, size_t bits) a->chars[a->used - 1] &= mask; } - TRIM(a); - if (!a->used) - SET_SIGNUM(a, 0); + TRIM_AND_ZERO(a); } |
