mirror of
https://github.com/micropython/micropython.git
synced 2025-09-01 23:40:34 +02:00
py/binary: Make return type of mp_binary_get_size size_t instead of int.
Fixes sign-compare warning.
This commit is contained in:
committed by
Damien George
parent
b5cef5c7ea
commit
f5dd6f7f37
@@ -32,7 +32,7 @@
|
||||
// (underlyingly they're same).
|
||||
#define BYTEARRAY_TYPECODE 0
|
||||
|
||||
int mp_binary_get_size(char struct_type, char val_type, mp_uint_t *palign);
|
||||
size_t mp_binary_get_size(char struct_type, char val_type, mp_uint_t *palign);
|
||||
mp_obj_t mp_binary_get_val_array(char typecode, void *p, mp_uint_t index);
|
||||
void mp_binary_set_val_array(char typecode, void *p, mp_uint_t index, mp_obj_t val_in);
|
||||
void mp_binary_set_val_array_from_int(char typecode, void *p, mp_uint_t index, mp_int_t val);
|
||||
|
Reference in New Issue
Block a user