diff options
author | Nikias Bassen | 2022-09-05 01:34:43 +0200 |
---|---|---|
committer | Nikias Bassen | 2022-09-05 01:34:43 +0200 |
commit | c3af449543795ad4d3ab178120ff69e90fdd2cc8 (patch) | |
tree | a0a1f09cdeb9cac37c44e0cf31fb23f506780051 | |
parent | b24911fd4f5f772c9dc242ffab133806ab2cbab9 (diff) | |
download | libplist-c3af449543795ad4d3ab178120ff69e90fdd2cc8.tar.gz libplist-c3af449543795ad4d3ab178120ff69e90fdd2cc8.tar.bz2 |
cython: Fix 2 warnings with `-Wbad-function-cast`
-rw-r--r-- | cython/plist.pyx | 6 |
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() |