1
0
Fork 0

CO_SRDO: static analysis: loss of precision (assignment) from 32 bits to 8 bits

when: SRDO->dataLength = srdoDataLength[0];
This commit is contained in:
temi54c1l8 2024-06-11 09:12:42 +02:00
parent c4c4f98e2c
commit 5a31668c3e

View file

@ -575,7 +575,7 @@ CO_SRDO_init(CO_SRDO_t* SRDO, uint8_t SRDO_Index, CO_SRDOGuard_t* SRDOGuard, OD_
/* Configure mappings */
if ((err == 0U) && configurationInProgress) {
size_t srdoDataLength[2] = {0, 0};
CO_SRDO_size_t srdoDataLength[2] = {0, 0};
for (uint8_t i = 0; i < mappedObjectsCount; i++) {
uint8_t plain_inverted = i % 2U;