#15946: Cython warnings about mpz_t ("... referenced before assignment")
----------------------------------+------------------------
       Reporter:  mmezzarobba     |        Owner:
           Type:  defect          |       Status:  new
       Priority:  major           |    Milestone:  sage-6.4
      Component:  cython          |   Resolution:
       Keywords:                  |    Merged in:
        Authors:  Jeroen Demeyer  |    Reviewers:
Report Upstream:  N/A             |  Work issues:
         Branch:                  |       Commit:
   Dependencies:  #16583, #16910  |     Stopgaps:
----------------------------------+------------------------
Description changed by jdemeyer:

Old description:

> Similar to #16583, we should fix the declarations for `mpz_t` (and
> related types). This also involves fixing various bad usages of `mpz_t`
> (it was `ctypedef`'ed as `void*`, meaning you could do with it what you
> wanted and Cython wouldn't complain) and removing many many places where
> a ''pointer'' to an `mpz_t` was passed instead of the `mpz_t` itself.
>
> See also [https://groups.google.com/forum/#!msg/sage-
> devel/bs4lnNwbINs/B2iVgxK7pCYJ]

New description:

 Similar to #16583, we should fix the declarations for `mpz_t` (and related
 types). This also involves fixing various bad usages of `mpz_t` (it was
 `ctypedef`'ed as `void*`, meaning you could do with it what you wanted and
 Cython wouldn't complain) and changing many many functions to pass an
 `mpz_t` instead of an `mpz_t*` (in particular, NTL functions `mpz_to_ZZ`
 and `ZZ_to_mpz`).

 See also [https://groups.google.com/forum/#!msg/sage-
 devel/bs4lnNwbINs/B2iVgxK7pCYJ]

--

--
Ticket URL: <http://trac.sagemath.org/ticket/15946#comment:7>
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.

Reply via email to