summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cython/plist.pyx6
1 files changed, 4 insertions, 2 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx
index bfecf85..38415f9 100644
--- a/cython/plist.pyx
+++ b/cython/plist.pyx
@@ -189,7 +189,8 @@ cdef class Integer(Node):
return self.get_value()
def __float__(self):
- return float(self.get_value())
+ v = self.get_value()
+ return float(v)
def __richcmp__(self, other, op):
cdef int i = self.get_value()
@@ -281,7 +282,8 @@ cdef class Uid(Node):
return self.get_value()
def __float__(self):
- return float(self.get_value())
+ v = self.get_value()
+ return float(v)
def __richcmp__(self, other, op):
cdef int i = self.get_value()