diff options
Diffstat (limited to 'cython/plist.pyx')
| -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() |
