diff options
author | Kaspar Schleiser <kaspar@schleiser.de> | 2015-05-10 13:04:38 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-05-17 18:12:19 +0100 |
commit | f5dd6f7f3707b67acbd1dbfe71cad2b958d5d7be (patch) | |
tree | 9829518592a339c44d0efbe40b394c1bcd4d3172 /stmhal/adc.c | |
parent | b5cef5c7ea2d4bf3564938a679756a8be8c00d39 (diff) |
py/binary: Make return type of mp_binary_get_size size_t instead of int.
Fixes sign-compare warning.
Diffstat (limited to 'stmhal/adc.c')
-rw-r--r-- | stmhal/adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |