Skip to main content

Compiler Error C0196

Message: Implicit conversion from unsigned Type '<data type 1>' to signed type '<data type 2>' : possible change of sign

Possible error cause: A sign conflict may have been missed in the implicit conversion.

Error correction: Use explicit conversions.

Example 424. Example of the error:
PROGRAM PLC_PRG
VAR
    i : INT;
    b : UINT;
END_VAR

i := b;

Message:

C0196: Implicit conversion from unsigned Type 'UINT' to signed type 'INT' : possible change of sign