-
Bug
-
Resolution: Fixed
-
Medium
-
Code Generation Tools
-
CODEGEN-7931
-
-
-
default
-
To work around this issue, replace all of the "void *" pointers with "unsigned char *"
-
The C standard does not allow pointer arithmetic on pointers to void. As an extension to the language, the TI compiler allows this in relaxed mode, in which case the arithmetic should behave as though it were arithmetic on "unsigned char *".
The C standard does not allow pointer arithmetic on pointers to void. As an extension to the language, the TI compiler allows this in relaxed mode, in which case the arithmetic should behave as though it were arithmetic on "unsigned char *". For this bug, if given an expression of the form "void *" plus or minus an integer constant, the compiler may incorrectly drop the constant offset.