Skip to content

Commit

Permalink
Workaround a bug caused by some too new code.
Browse files Browse the repository at this point in the history
  • Loading branch information
williamstein committed Aug 30, 2007
1 parent 6c80376 commit 49bf43c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/sage/rings/integer.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,9 @@ cdef class Integer(sage.structure.element.EuclideanDomainElement):
return x

def __int__(self):
return mpz_get_pyintlong(self.value)
# TODO -- this crashes on sage.math, since it is evidently written incorrectly.
#return mpz_get_pyintlong(self.value)
return int(mpz_get_pylong(self.value))

def __long__(self):
return mpz_get_pylong(self.value)
Expand Down
2 changes: 1 addition & 1 deletion src/sage/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""nodoctests"""
version='2.8.3.rc3'; date='2007-08-29'
version='2.8.3.rc4'; date='2007-08-30'

0 comments on commit 49bf43c

Please sign in to comment.