1
0
Fork 0

Fix "comparison of integer expressions of different signedness" warning

With -Wextra GCC gives:

socketCAN/CO_driver.c: In function ‘setRxFilters’:
socketCAN/CO_driver.c:159:19: warning: comparison of integer expressions
of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’}
[-Wsign-compare]
  159 |     for (i = 0; i < CANmodule->CANinterfaceCount; i ++) {
      |                   ^
This commit is contained in:
Freddie Chopin 2020-05-04 17:56:11 +02:00
parent aa6075b3c8
commit 466bf0ffb7

View file

@ -131,7 +131,7 @@ static CO_ReturnError_t disableRx(CO_CANmodule_t *CANmodule)
static CO_ReturnError_t setRxFilters(CO_CANmodule_t *CANmodule)
{
int ret;
int i;
size_t i;
int count;
CO_ReturnError_t retval;