Mercurial > hg > xemacs-beta
diff src/number.c @ 2013:f2fdfc131770
[xemacs-hg @ 2004-04-14 22:50:52 by james]
Work around GMP string to number limitations.
author | james |
---|---|
date | Wed, 14 Apr 2004 22:50:54 +0000 |
parents | a9cdbfb4716e |
children | 4db90be29229 |
line wrap: on
line diff
--- a/src/number.c Wed Apr 14 21:50:42 2004 +0000 +++ b/src/number.c Wed Apr 14 22:50:54 2004 +0000 @@ -85,10 +85,10 @@ string_to_bignum (const Ibyte *str, Bytecount len, int base) { Lisp_Object b = make_bignum (0L); - /* GMP bignum_set_string returns random values with initial + sign */ + /* GMP bignum_set_string has no effect with initial + sign */ if (*str == '+') str++; - /* GMP bignum_set_string returns random values when fed an empty string */ + /* GMP bignum_set_string has no effect when fed an empty string */ if (*str == '\0') return make_int (0); return (bignum_set_string (XBIGNUM_DATA (b), (const char *) str, base) < 0)