Ticket #9958: trac_9958-32_64bit_messages.patch

File trac_9958-32_64bit_messages.patch, 1.8 KB (added by fbissey, 10 years ago)

fix some 32/64 bits messages

  • sage/libs/cremona/newforms.pyx

    # HG changeset patch
    # User Francois Bissey <francois.bissey@canterbury.ac.nz>
    # Date 1314658571 -43200
    # Node ID 5b9db562d1492bd26215586e88e6bbe24545ba1e
    # Parent  c9da40477f89d9a250d5fa495509e1f11768d607
    trac 9958: 32/64 bit message differences
    
    diff --git a/sage/libs/cremona/newforms.pyx b/sage/libs/cremona/newforms.pyx
    a b  
    5151            sage: from sage.libs.cremona.newforms import ECModularSymbol
    5252            sage: E = EllipticCurve('858k2')
    5353            sage: ECModularSymbol(E)
    54             Traceback (most recent call last):                     # 32-bit
    55             ...                                                    # 32-bit
    56             OverflowError: long int too large to convert to int    # 32-bit
     54            Traceback (most recent call last):                           # 32-bit
     55            ...                                                          # 32-bit
     56            OverflowError: Python int too large to convert to C long     # 32-bit
    5757            Modular symbol with sign 1 over Rational Field attached to Elliptic Curve defined by y^2 + x*y = x^3 + 16353089*x - 335543012233 over Rational Field         # 64-bit
    5858        """
    5959        cdef ZZ_c a1, a2, a3, a4, a6, N
  • sage/stats/intlist.pyx

    diff --git a/sage/stats/intlist.pyx b/sage/stats/intlist.pyx
    a b  
    7373            sage: stats.IntList([1, 3, 2^32])
    7474            Traceback (most recent call last):
    7575            ...
    76             OverflowError: ... too large to convert to int
     76            OverflowError: ... too large to convert to C long  # 32-bit
     77            OverflowError: ... too large to convert to int     # 64-bit
    7778       
    7879        Printing omits entries::
    7980