检测从有符号数据类型到无符号数据类型或其他类型的隐式转换。
现在这条信息已经过时,因为编译器已经将其报告为警告。
重要性:低
示例
PROGRAM PLC_PRG VAR byTest :BYTE; udiTest: UDINT; ulktest: ULINT; wTest : WORD; lwTest : LWORD; siTest : SINT; iTest : INT; diTest : DINT; liTest :LINT; END_VAR liTest := ulktest; // SA0132 udiTest:= diTest; // SA0132 siTest := byTest; // SA0132 wTest := iTest; // SA0132 lwTest := siTest; // SA0132 --> SA0132: Implicit signed/unsigned conversion from type 'ULINT' to type 'LINT' --> SA0132: Implicit signed/unsigned conversion from type 'DINT' to type 'UDINT' --> SA0132: Implicit signed/unsigned conversion from type 'BYTE' to type 'SINT' --> SA0132: Implicit signed/unsigned conversion from type 'INT' to type 'WORD' --> SA0132: Implicit signed/unsigned conversion from type 'SINT' to type 'LWORD'