Skip to main content

Compiler Error C0195

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

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

Error correction: Convert only data types with the same sign implicitly.

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

b := i;

Message:

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