summaryrefslogtreecommitdiffstats
path: root/cython
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-09-05 01:34:43 +0200
committerGravatar Nikias Bassen2022-09-05 01:34:43 +0200
commitc3af449543795ad4d3ab178120ff69e90fdd2cc8 (patch)
treea0a1f09cdeb9cac37c44e0cf31fb23f506780051 /cython
parentb24911fd4f5f772c9dc242ffab133806ab2cbab9 (diff)
downloadlibplist-c3af449543795ad4d3ab178120ff69e90fdd2cc8.tar.gz
libplist-c3af449543795ad4d3ab178120ff69e90fdd2cc8.tar.bz2
cython: Fix 2 warnings with `-Wbad-function-cast`
Diffstat (limited to 'cython')
-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()