Skip to content

Commit

Permalink
WIP3
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jul 25, 2023
1 parent f25c637 commit 67dac46
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/sage/libs/gap/element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ cdef Obj make_gap_list(sage_list) except NULL:
The list of the elements in ``a`` as a Gap ``Obj``.
"""
cdef GapElement l
cdef Obj l
cdef GapElement elem
try:
GAP_Enter()
l = libgap(GAP_NewPlist(0))
l = GAP_NewPlist(0)
finally:
GAP_Leave()

Expand All @@ -61,8 +61,8 @@ cdef Obj make_gap_list(sage_list) except NULL:
else:
elem = <GapElement>x

AddList(l.value, elem.value)
return l.value
AddList(l, elem.value)
return l


cdef Obj make_gap_matrix(sage_list, gap_ring) except NULL:
Expand All @@ -83,12 +83,12 @@ cdef Obj make_gap_matrix(sage_list, gap_ring) except NULL:
The list of the elements in ``sage_list`` as a Gap ``Obj``.
"""
cdef GapElement l
cdef Obj l
cdef GapElement elem
cdef GapElement one
try:
GAP_Enter()
l = libgap(GAP_NewPlist(0))
l = GAP_NewPlist(0)
finally:
GAP_Leave()

Expand All @@ -103,8 +103,8 @@ cdef Obj make_gap_matrix(sage_list, gap_ring) except NULL:
else:
elem = <GapElement>x

AddList(l.value, elem.value)
return l.value
AddList(l, elem.value)
return l


cdef char *capture_stdout(Obj func, Obj obj):
Expand Down

0 comments on commit 67dac46

Please sign in to comment.