summaryrefslogtreecommitdiffstats
path: root/pbn_div.c
diff options
context:
space:
mode:
Diffstat (limited to 'pbn_div.c')
-rw-r--r--pbn_div.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbn_div.c b/pbn_div.c
index f7b3a56..7e5b1fa 100644
--- a/pbn_div.c
+++ b/pbn_div.c
@@ -95,10 +95,10 @@ int pbn_div(struct pbn **qp, struct pbn **rp, struct pbn *n, struct pbn *d)
}
}
- r->minus = q->minus;
+ r->minus = q->minus && r->bits;
if (rp)
- *rp = pbn_adjust_bits(r);
+ *rp = r; /* r already has correct bit adjustment */
else
pbn_free(r);