Ticket #4000: trac4000_64bit.patch

File trac4000_64bit.patch, 817 bytes (added by was, 8 years ago)

fix the 32/64-bit doctest that Robert found... thus hopefully meaning this is ready for positive review!

  • sage/rings/polynomial/polynomial_rational_flint.pyx

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1281550739 25200
    # Node ID 73a3e0587d314a443db411156fbbdc7db0c84ef6
    # Parent  0ac45127baf4559a753d827a2064058d787bd86c
    trac 4000: Implement QQ['x'] via Flint ZZ['x'] + denominator -- 64-bit update
    
    diff --git a/sage/rings/polynomial/polynomial_rational_flint.pyx b/sage/rings/polynomial/polynomial_rational_flint.pyx
    a b  
    989989        We verify the size condition on the exponent::
    990990       
    991991            sage: R.<t> = QQ[]
    992             sage: (1 + t)^(2^31)
     992            sage: (1 + t)^(2^63)
    993993            Traceback (most recent call last):
    994994            ...
    995995            OverflowError: long int too large to convert to int