17-10-2013, 11:29 PM
I'm currently using Parasoft's C++ Test program and it's flagging the last line of the code below and I'm not seeing the error . . . "The error I'm getting is Underlying type of LHS operand of bitwise operator is signed type." Below is the code:
[code]typedef signed short sshort16;
struct DACStruct
{
sshort16 Off;
};
struct DACStruct DACData;
DACData.Off = (sshort16)(EEPROM_BANK1[1]) + (((sshort16)(EEPROM_BANK1[0]))
[code]typedef signed short sshort16;
struct DACStruct
{
sshort16 Off;
};
struct DACStruct DACData;
DACData.Off = (sshort16)(EEPROM_BANK1[1]) + (((sshort16)(EEPROM_BANK1[0]))
<t></t>