diff options
Diffstat (limited to 'cython/plist.pyx')
| -rw-r--r-- | cython/plist.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx index dce5bec..09c0bbc 100644 --- a/cython/plist.pyx +++ b/cython/plist.pyx | |||
| @@ -180,7 +180,7 @@ cdef class Integer(Node): | |||
| 180 | self._c_node = plist_new_uint(int(value)) | 180 | self._c_node = plist_new_uint(int(value)) |
| 181 | 181 | ||
| 182 | def __repr__(self): | 182 | def __repr__(self): |
| 183 | cdef int i = self.get_value() | 183 | cdef uint64_t i = self.get_value() |
| 184 | return '<Integer: %s>' % i | 184 | return '<Integer: %s>' % i |
| 185 | 185 | ||
| 186 | def __int__(self): | 186 | def __int__(self): |
| @@ -207,7 +207,7 @@ cdef class Integer(Node): | |||
| 207 | cpdef set_value(self, object value): | 207 | cpdef set_value(self, object value): |
| 208 | plist_set_uint_val(self._c_node, int(value)) | 208 | plist_set_uint_val(self._c_node, int(value)) |
| 209 | 209 | ||
| 210 | cpdef int get_value(self): | 210 | cpdef uint64_t get_value(self): |
| 211 | cdef uint64_t value | 211 | cdef uint64_t value |
| 212 | plist_get_uint_val(self._c_node, &value) | 212 | plist_get_uint_val(self._c_node, &value) |
| 213 | return value | 213 | return value |
