Skip to content

Commit

Permalink
support for ecl 23.9.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria committed Sep 10, 2023
1 parent 6ea1fe9 commit 26f1b72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/libs/ecl.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -563,15 +563,15 @@ cdef class EclObject:
Floats in Python are IEEE double, which LISP has as well. However,
the printing of floating point types in LISP depends on settings::
sage: a = EclObject(float(10^40))
sage: a = EclObject(float(1.234e40))
sage: ecl_eval("(setf *read-default-float-format* 'single-float)")
<ECL: SINGLE-FLOAT>
sage: a
<ECL: 1.d40>
<ECL: 1.234d40>
sage: ecl_eval("(setf *read-default-float-format* 'double-float)")
<ECL: DOUBLE-FLOAT>
sage: a
<ECL: 1.e40>
<ECL: 1.234e40>
Tuples are translated to dotted lists::
Expand Down
4 changes: 4 additions & 0 deletions src/sage/libs/eclsig.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ static inline void ecl_sig_off(void)
sig_off();
}

#if ECL_VERSION_NUMBER < 230909
#define ecl_mpz_from_bignum(obj) ((obj)->big.big_num)
#else
#define ecl_mpz_from_bignum(obj) ecl_bignum(obj)
#endif

cl_object ecl_bignum_from_mpz(mpz_t num)
{
Expand Down

0 comments on commit 26f1b72

Please sign in to comment.