summaryrefslogtreecommitdiffstats
path: root/cython/plist.pyx
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-03-19 17:13:20 +0100
committerGravatar Nikias Bassen2013-03-19 17:13:20 +0100
commitef7347435a77a97444e61a52ce9305c3924d2df6 (patch)
tree077487f17abfcc127b4c097c3d9017df633930ca /cython/plist.pyx
parent1f14105b2841dc73b1d459ba0b83e18785766ef8 (diff)
downloadlibplist-ef7347435a77a97444e61a52ce9305c3924d2df6.tar.gz
libplist-ef7347435a77a97444e61a52ce9305c3924d2df6.tar.bz2
cython: use uint64_t instead of int for Integer get_value and __repr__
Diffstat (limited to 'cython/plist.pyx')
-rw-r--r--cython/plist.pyx4
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):
self._c_node = plist_new_uint(int(value))
def __repr__(self):
- cdef int i = self.get_value()
+ cdef uint64_t i = self.get_value()
return '<Integer: %s>' % i
def __int__(self):
@@ -207,7 +207,7 @@ cdef class Integer(Node):
cpdef set_value(self, object value):
plist_set_uint_val(self._c_node, int(value))
- cpdef int get_value(self):
+ cpdef uint64_t get_value(self):
cdef uint64_t value
plist_get_uint_val(self._c_node, &value)
return value