What is the return type of MCPSDataRequest?
There are different reasons why this could happen:
- for implicit parameter declaratios, the return value is an int by ANSI. Therefore dont use implicit parameter declarations if anything returns just 8 bits (well actually never ever use implicit parameter declarations).
- The returned type of MCPSDataRequest could be configured to be of a different size, for example enums can be configured to be 8 bit or 16 bit.
my feeling is that the code has some implicit parameter declarations. Does do create warnings by default and those warnings should be taken seriously.
Daniel