Compiler Warning C0033
Message: Type '<pointer type>' is possibly not convertible to type '<data type>'.
Possible error cause: This error occurs only when checking pool objects. An attempt was made to convert a pointer to an integer. Because the size of pointers in a library is unknown, errors may occur when using the library.
Error correction: Use the type __UXINT
or __XWORD
for platform-independent calculations with pointers.
Example 333. Example of the error:
PROGRAM PLC_PRG VAR ptr : POINTER TO INT; dw : DWORD; END_VAR dw := ptr;
Message:
C0033: Type 'POINTER TO INT' is possibly not convertible to type 'DWORD'.