python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
cannot cast 'float64' to different essential type 'unsigned16' [MISRA 2012 Rule 10.8, required]
cannot cast 'float64' to different essential type 'unsigned16' [MISRA 2012 Rule 10.8, required]
double x, y;
#define MIN 2.0
uint16_t z = (uint16_t) ((x * MIN) + y);
How can I resolve this line throw...
user8454941
Votes: 0
Answers: 2
Pc lint "-egrep" option
I'm trying to clean up my code from misra violations using Pc-lint.
One of them is the violation to rule 11.4 in this code.
GPIO_PinState level = HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_6);
the definition o...
buch
Votes: 0
Answers: 1