mirror of
https://github.com/eclipse/upm.git
synced 2025-07-03 10:21:19 +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:
@ -315,7 +315,7 @@ upm_result_t mcp2515_bus_read(const mcp2515_context dev, uint8_t cmd,
|
||||
|
||||
if (args && arglen)
|
||||
{
|
||||
for (int i=0; i<arglen; i++)
|
||||
for (unsigned int i=0; i<arglen; i++)
|
||||
sbuf[index++] = args[i];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user