Skip to content

Commit 49bf43c

Browse files
committedAug 30, 2007
Workaround a bug caused by some too new code.
1 parent 6c80376 commit 49bf43c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎src/sage/rings/integer.pyx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,9 @@ cdef class Integer(sage.structure.element.EuclideanDomainElement):
12041204
return x
12051205

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

12091211
def __long__(self):
12101212
return mpz_get_pylong(self.value)

‎src/sage/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""nodoctests"""
2-
version='2.8.3.rc3'; date='2007-08-29'
2+
version='2.8.3.rc4'; date='2007-08-30'

0 commit comments

Comments
 (0)