From f5dd6f7f3707b67acbd1dbfe71cad2b958d5d7be Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Sun, 10 May 2015 13:04:38 +0200 Subject: py/binary: Make return type of mp_binary_get_size size_t instead of int. Fixes sign-compare warning. --- stmhal/adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stmhal/adc.c') diff --git a/stmhal/adc.c b/stmhal/adc.c index bc3bdf1d1..27cccda57 100644 --- a/stmhal/adc.c +++ b/stmhal/adc.c @@ -219,7 +219,7 @@ STATIC mp_obj_t adc_read_timed(mp_obj_t self_in, mp_obj_t buf_in, mp_obj_t freq_ mp_buffer_info_t bufinfo; mp_get_buffer_raise(buf_in, &bufinfo, MP_BUFFER_WRITE); - int typesize = mp_binary_get_size('@', bufinfo.typecode, NULL); + size_t typesize = mp_binary_get_size('@', bufinfo.typecode, NULL); // Init TIM6 at the required frequency (in Hz) timer_tim6_init(mp_obj_get_int(freq_in)); -- cgit v1.2.3