Ticket #9828: 6_type_inferance.patch

File 6_type_inferance.patch, 1014 bytes (added by robertwb, 12 years ago)
  • sage/libs/flint/fmpz_poly.pyx

    # HG changeset patch
    # User Robert Bradshaw <robertwb@math.washington.edu>
    # Date 1284628998 25200
    # Node ID e40729740c2bd551d2623bbdd177882345b2438f
    # Parent  ebf433b6cf5ecdb56040834e13f038e1f6e1aecf
    Implicit object conversion fix.
    
    diff -r ebf433b6cf5e -r e40729740c2b sage/libs/flint/fmpz_poly.pyx
    a b  
    115115            8  0 0 0 0 0 0 0 1
    116116        """
    117117        cdef char* ss = fmpz_poly_to_string(self.poly)
    118         s = ss
     118        cdef object s = ss
    119119        free(ss)
    120120        return s
    121121       
  • sage/libs/pari/gen.pyx

    diff -r ebf433b6cf5e -r e40729740c2b sage/libs/pari/gen.pyx
    a b  
    11351135        if signe(x) < 0:
    11361136            sp = sp-1
    11371137            sp[0] = c'-'
    1138         k = sp
     1138        k = <object>sp
    11391139        sage_free(s)
    11401140        return k
    11411141