summaryrefslogtreecommitdiff
path: root/mpfr.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-01-15 21:27:06 +0200
committerArnold D. Robbins <arnold@skeeve.com>2019-01-15 21:27:06 +0200
commitc73d262642ee3a3d6585dc44acc62c432910f920 (patch)
treee8ad55a17ad6745bda7df99e6940cd4b393be330 /mpfr.c
parentfa9c6b921f784ad6f35f36b65635969ae4fade2d (diff)
downloadgawk-c73d262642ee3a3d6585dc44acc62c432910f920.tar.gz
Finish transition to using assoc_set.
Diffstat (limited to 'mpfr.c')
-rw-r--r--mpfr.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/mpfr.c b/mpfr.c
index c3ba2a6a..e1712863 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -1262,16 +1262,10 @@ do_mpfr_intdiv(int nargs)
unref(denominator);
sub = make_string("quotient", 8);
- lhs = assoc_lookup(result, sub);
- unref(*lhs);
- *lhs = quotient;
- unref(sub);
+ assoc_set(result, sub, quotient);
sub = make_string("remainder", 9);
- lhs = assoc_lookup(result, sub);
- unref(*lhs);
- *lhs = remainder;
- unref(sub);
+ assoc_set(result, sub, remainder);
return make_number((AWKNUM) 0.0);
}