diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2018-09-10 08:59:39 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-09-10 09:04:25 -0700 |
commit | 10a45096988f6f19e36e2e7865b6eb35c0929b6d (patch) | |
tree | 48c29051f52ae37d4c943f4bc1400c57aa15b91b /src/bignum.c | |
parent | fe859a07870d5204adfd5c9a7f83bf69658d37c8 (diff) | |
download | emacs-10a45096988f6f19e36e2e7865b6eb35c0929b6d.tar.gz emacs-10a45096988f6f19e36e2e7865b6eb35c0929b6d.tar.bz2 emacs-10a45096988f6f19e36e2e7865b6eb35c0929b6d.zip |
Fix misleading name ‘double_to_bignum’
* src/bignum.c (double_to_integer): Rename from double_to_bignum,
since the result is not necessarily a bignum. All uses changed.
Diffstat (limited to 'src/bignum.c')
-rw-r--r-- | src/bignum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bignum.c b/src/bignum.c index 35894f5647d..f4c24d132be 100644 --- a/src/bignum.c +++ b/src/bignum.c @@ -64,9 +64,9 @@ bignum_to_double (Lisp_Object n) return mpz_get_d (XBIGNUM (n)->value); } -/* Return D, converted to a bignum. Discard any fraction. */ +/* Return D, converted to a Lisp integer. Discard any fraction. */ Lisp_Object -double_to_bignum (double d) +double_to_integer (double d) { mpz_set_d (mpz[0], d); return make_integer_mpz (); |