diff options
| author | 2022-09-05 01:34:43 +0200 | |
|---|---|---|
| committer | 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): | |||
| 189 | return self.get_value() | 189 | return self.get_value() |
| 190 | 190 | ||
| 191 | def __float__(self): | 191 | def __float__(self): |
| 192 | return float(self.get_value()) | 192 | v = self.get_value() |
| 193 | return float(v) | ||
| 193 | 194 | ||
| 194 | def __richcmp__(self, other, op): | 195 | def __richcmp__(self, other, op): |
| 195 | cdef int i = self.get_value() | 196 | cdef int i = self.get_value() |
| @@ -281,7 +282,8 @@ cdef class Uid(Node): | |||
| 281 | return self.get_value() | 282 | return self.get_value() |
| 282 | 283 | ||
| 283 | def __float__(self): | 284 | def __float__(self): |
| 284 | return float(self.get_value()) | 285 | v = self.get_value() |
| 286 | return float(v) | ||
| 285 | 287 | ||
| 286 | def __richcmp__(self, other, op): | 288 | def __richcmp__(self, other, op): |
| 287 | cdef int i = self.get_value() | 289 | cdef int i = self.get_value() |
