Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for ecl 23.9.9 #36235

Merged
merged 1 commit into from
Sep 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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