diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-03-05 20:16:14 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-03-05 20:16:14 +0100 |
| commit | 5860237d2f05f6ae45a98569b0d567c2227904c6 (patch) | |
| tree | bbddb91e2a6a5e7efe7825971c726a9e4db87dd6 /src/zdivmod.c | |
| parent | More detailed description of division and modulus (diff) | |
| download | libzahl-5860237d2f05f6ae45a98569b0d567c2227904c6.tar.gz libzahl-5860237d2f05f6ae45a98569b0d567c2227904c6.tar.bz2 libzahl-5860237d2f05f6ae45a98569b0d567c2227904c6.tar.xz | |
Fix bugs and add a randomised testing
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zdivmod.c')
| -rw-r--r-- | src/zdivmod.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/zdivmod.c b/src/zdivmod.c index e145c27..def98b5 100644 --- a/src/zdivmod.c +++ b/src/zdivmod.c @@ -32,8 +32,6 @@ zdivmod(z_t a, z_t b, z_t c, z_t d) zseti(a, sign); SET_SIGNUM(b, 0); return; - } else if (sign < 0) { - zsub_unsigned(b, d, c); } else { SET(b, c); } |
