tisp

tiny lisp
git clone git://edryd.org/tisp
Log | Files | Refs | LICENSE

commit fd707e0baf3856fe41c389cd575d3ba655dd2109
parent 921e04f7164d3bfb31ba6f2d621bb228071e335c
Author: Ed van Bruggen <edvb@uw.edu>
Date:   Mon, 26 Aug 2019 20:34:17 -0700

Rename create_dub to create_dec for consistency

Diffstat:
tibs/math.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tibs/math.c b/tibs/math.c @@ -67,7 +67,7 @@ create_int(double num, double den) } static Val -create_dub(double num, double den) +create_dec(double num, double den) { assert(den == 1); return mk_dec(num); @@ -85,7 +85,7 @@ static Val (*mk_num(Type a, Type b, int isfrac))(double, double) { if (a & DECIMAL || b & DECIMAL) - return &create_dub; + return &create_dec; if (isfrac || a & RATIO || b & RATIO) return &create_rat; return &create_int;