Ticket #4539: trac4539_is_monomial.patch

File trac4539_is_monomial.patch, 509 bytes (added by AlexanderDreyer, 3 years ago)
  • sage/rings/polynomial/plural.pyx

    # HG changeset patch
    # Parent eaab1337a21322be116038d0b8186e77b5cb2390
    
    diff --git a/sage/rings/polynomial/plural.pyx b/sage/rings/polynomial/plural.pyx
    a b  
    21712171        _p = p_Head(self._poly, _ring) 
    21722172        _n = p_GetCoeff(_p, _ring) 
    21732173 
    2174         ret = (not self._poly.next) and n_IsOne(_n, _ring) 
     2174        ret = bool((not self._poly.next) and n_IsOne(_n, _ring)) 
    21752175 
    21762176        p_Delete(&_p, _ring) 
    21772177        return ret