Skip to content

Commit 9a5e056

Browse files
committed
Update explanation comments
1 parent 9b16f9a commit 9a5e056

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sage/rings/integer.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7556,8 +7556,8 @@ def _check_global_dummy_Integer():
75567556
sage: _check_global_dummy_Integer()
75577557
True
75587558
"""
7559-
# Check that it has exactly one limb allocated
7560-
# This is assumed later in fast_tp_new() :issue:`33081`
7559+
# Check that it has no allocation (requires GMP >= 6.2, see :issue:`31340`)
7560+
# fast_tp_new() later assumes that memcpy this mpz object gives a valid new mpz
75617561
cdef mpz_ptr dummy = global_dummy_Integer.value
75627562
if dummy._mp_alloc == 0 and dummy._mp_size == 0:
75637563
return True
@@ -7648,7 +7648,7 @@ cdef PyObject* fast_tp_new(type t, args, kwds) except NULL:
76487648
# The global_dummy_Integer may have a reference count larger than
76497649
# one, but it is expected that newly created objects have a
76507650
# reference count of one. This is potentially unneeded if
7651-
# everybody plays nice, because the gobal_dummy_Integer has only
7651+
# everybody plays nice, because the global_dummy_Integer has only
76527652
# one reference in that case.
76537653

76547654
# Objects from the pool have reference count zero, so this

0 commit comments

Comments
 (0)