Skip to content

Commit

Permalink
Use GAP_ValueMacFloat in favor of internal VAL_MACFLOAT. Refs #2.
Browse files Browse the repository at this point in the history
  • Loading branch information
embray committed Jan 14, 2021
1 parent 164c35f commit e3acb0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions gappy/gap_includes.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ cdef extern from "gap/libgap-api.h" nogil:

# Floats
cdef Obj GAP_NewMacFloat(double)
double GAP_ValueMacFloat(Obj)

# Strings
cdef char *GAP_CSTR_STRING(Obj)
Expand Down Expand Up @@ -123,9 +124,6 @@ cdef extern from "gap/io.h" nogil:
UInt OpenOutputStream(Obj stream)
UInt CloseOutput()

cdef extern from "gap/macfloat.h" nogil:
double VAL_MACFLOAT(Obj obj)


cdef extern from "gap/objects.h" nogil:
bint IS_MUTABLE_OBJ(Obj obj)
Expand Down
2 changes: 1 addition & 1 deletion gappy/gapobj.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ cdef class GapFloat(GapObj):
>>> float(gap.eval("Float(3.5)"))
3.5
"""
return VAL_MACFLOAT(self.value)
return GAP_ValueMacFloat(self.value)



Expand Down

0 comments on commit e3acb0c

Please sign in to comment.