Ticket #10061: 10061_newforms.patch

File 10061_newforms.patch, 2.0 KB (added by jdemeyer, 8 years ago)

Additional patch

  • sage/libs/cremona/newforms.pyx

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1297069725 -3600
    # Node ID 5485a7d8947916938514f29553670d387f81cba3
    # Parent  e7d46e6ecc54690589a58063b1ac92ebb72eae5c
    #10061: Fix exception inside sig_on() in newforms.pyx on 32-bit machines
    
    diff -r e7d46e6ecc54 -r 5485a7d89479 sage/libs/cremona/newforms.pyx
    a b  
    55#*****************************************************************************
    66#       Copyright (C) 2008 Tom Boothby <boothby@u.washington.edu>
    77#
    8 #  Distributed under the terms of the GNU General Public License, version 2
    9 #  or later (GPL).
    10 #
    11 #    This code is distributed in the hope that it will be useful,
    12 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
    13 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    14 #    General Public License for more details.
    15 #
    16 #  The full text of the GPL is available at:
    17 #
    18 #                  http://www.gnu.org/licenses/
     8#  Distributed under the terms of the GNU General Public License (GPL)
     9#  as published by the Free Software Foundation; either version 2 of
     10#  the License, or (at your option) any later version.
     11#                  http://www.gnu.org/licenses/
    1912#*****************************************************************************
    2013
    2114
     
    6962        cdef CurveRed *CR
    7063        cdef int n, t
    7164       
    72         sig_on()
    7365        a1 = new_bigint(int(E.a1()))
    7466        a2 = new_bigint(int(E.a2()))
    7567        a3 = new_bigint(int(E.a3()))
    7668        a4 = new_bigint(int(E.a4()))
    7769        a6 = new_bigint(int(E.a6()))
     70
     71        sig_on()
    7872        C = new_Curve(a1,a2,a3,a4,a6)
    7973        CD = new_Curvedata(C[0],0)
    8074        CR = new_CurveRed(CD[0])
     
    139133        r = Rational((rational_num(_s), rational_den(_s)))
    140134        sig_off()
    141135        return r
    142 
    143 
    144 #cdef Integer integer_from_ZZ(ZZ_c a):
    145 #    cdef Integer r = Integer(None)
    146 #    ZZ_to_mpz(&r.value, &a)
    147 #    return r