#15820: Implement sequences of bounded integers
-------------------------------------+-------------------------------------
       Reporter:  SimonKing          |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.4
      Component:  algebra            |   Resolution:
       Keywords:  sequence bounded   |    Merged in:
  integer                            |    Reviewers:
        Authors:  Simon King         |  Work issues:  memory corruption
Report Upstream:  N/A                |       Commit:
         Branch:                     |  b331dc4f12e7291e9537f607ed155085cabc3fcd
  u/SimonKing/ticket/15820           |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by SimonKing):

 Replying to [comment:120 SimonKing]:
 > Replying to [comment:119 SimonKing]:
 > > Question to C/Cython experts: Is `tmp_limb` not just of type
 `<mp_limb_t*>` when I define `cdef mp_limb_t tmp_limb[1]`?
 >
 > Forget the question. The problem was somewhere else. Now I think I can
 make arrays works as replacement for the current usage of `sage_malloc`.

 Do ''not'' forget the question. There is something extremely strange going
 on. When I insert a print statement after assigning the size of an
 `__mpz_struct*`, then things work. '''Without the print statement''', the
 assignment of the size is ignored and the value incorrectly left zero.

 So, how can a print statement influence whether or not some value of a
 variable in GMP is assigned?

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