Technical Support

C51: WARNING 260 (POINTER TRUNCATION)


Information in this article applies to:

  • C51 Version 5.50

QUESTION

When I compile my C source file the compiler reports the following diagnostic:

WARNING 260: POINTER TRUNCATION

ANSWER

This warning occurs when pointer truncation would occur as a result of converting a pointer either implicitly or explicitly converted to a pointer with a smaller offset.

The pointer is converted but the offset is truncated to fit into the smaller pointer (which is probably wrong).

MORE INFORMATION

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure