mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
C: Fixes for sign compares in C libraries
Added explicit error for sign compares to CMake. Updated a handful of C source which compared unsigned vs signed. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -105,7 +105,7 @@ upm_result_t enc03r_calibrate(const enc03r_context dev,
|
||||
|
||||
float total = 0.0;
|
||||
|
||||
for (int i=0; i<samples; i++)
|
||||
for (unsigned int i=0; i<samples; i++)
|
||||
{
|
||||
int val = mraa_aio_read(dev->aio);
|
||||
if (val < 0)
|
||||
|
Reference in New Issue
Block a user