summaryrefslogtreecommitdiffstats
path: root/arith.c
diff options
context:
space:
mode:
Diffstat (limited to 'arith.c')
-rw-r--r--arith.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arith.c b/arith.c
index aed631a3..450b4e38 100644
--- a/arith.c
+++ b/arith.c
@@ -305,7 +305,7 @@ val plus(val anum, val bnum)
if (b > 0)
mp_add_d(mp(anum), bp, mp(n));
else
- mp_sub_d(mp(bnum), bp, mp(n));
+ mp_sub_d(mp(anum), bp, mp(n));
} else {
mp_int tmp;
mp_init(&tmp);