#19334: Update to Cython-0.23.3
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.9
Component: packages: | Resolution:
standard | Merged in:
Keywords: | Reviewers: François Bissey
Authors: Volker Braun | Work issues:
Report Upstream: N/A | Commit:
Branch: | a15ae13c5a9ff74d345525c8b028f4ebdfac0d56
u/vbraun/update_to_cython_0_23_3 | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by vbraun):
The difference is that Cython previously used `-1` as C integer literal,
but now uses `-1L`. By the rules of C type promotion and on machines with
32-bit ints, this means that
* `v = -1` sets `v` to `4294967295` = `UINT32_MAX - 1`
* `v == -1` converts `-1L` to `UINT64_MAX - 1` = `18446744073709551615`
and then compares with `v`
TLDR: don't use unsigned and negative numbers
--
Ticket URL: <http://trac.sagemath.org/ticket/19334#comment:11>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.