From 963a5a3e82ded7ee75adae72ae7cb14796fa150e Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 16 Jan 2015 17:47:07 +0000 Subject: py, unix: Allow to compile with -Wsign-compare. See issue #699. --- py/binary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/binary.c') diff --git a/py/binary.c b/py/binary.c index 69818e536..683ba3504 100644 --- a/py/binary.c +++ b/py/binary.c @@ -256,7 +256,7 @@ void mp_binary_set_val(char struct_type, char val_type, mp_obj_t val_in, byte ** } } - mp_binary_set_int(MIN(size, sizeof(val)), struct_type == '>', p, val); + mp_binary_set_int(MIN((size_t)size, sizeof(val)), struct_type == '>', p, val); } void mp_binary_set_val_array(char typecode, void *p, mp_uint_t index, mp_obj_t val_in) { -- cgit v1.2.3