diff options
Diffstat (limited to 'cython/plist.pyx')
| -rw-r--r-- | cython/plist.pyx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx index b5f4ef6..a16e7be 100644 --- a/cython/plist.pyx +++ b/cython/plist.pyx | |||
| @@ -48,9 +48,9 @@ cdef extern from *: | |||
| 48 | void plist_get_string_val(plist_t node, char **val) | 48 | void plist_get_string_val(plist_t node, char **val) |
| 49 | void plist_set_string_val(plist_t node, char *val) | 49 | void plist_set_string_val(plist_t node, char *val) |
| 50 | 50 | ||
| 51 | plist_t plist_new_data(char *val, uint64_t length) | 51 | plist_t plist_new_data(uint8_t *val, uint64_t length) |
| 52 | void plist_get_data_val(plist_t node, char **val, uint64_t * length) | 52 | void plist_get_data_val(plist_t node, uint8_t **val, uint64_t * length) |
| 53 | void plist_set_data_val(plist_t node, char *val, uint64_t length) | 53 | void plist_set_data_val(plist_t node, uint8_t *val, uint64_t length) |
| 54 | 54 | ||
| 55 | plist_t plist_new_null(); | 55 | plist_t plist_new_null(); |
| 56 | 56 | ||
| @@ -579,7 +579,7 @@ cdef class Data(Node): | |||
| 579 | 579 | ||
| 580 | cpdef bytes get_value(self): | 580 | cpdef bytes get_value(self): |
| 581 | cdef: | 581 | cdef: |
| 582 | char* val = NULL | 582 | uint8_t* val = NULL |
| 583 | uint64_t length = 0 | 583 | uint64_t length = 0 |
| 584 | plist_get_data_val(self._c_node, &val, &length) | 584 | plist_get_data_val(self._c_node, &val, &length) |
| 585 | 585 | ||
