|
|||||||||||
Technical Support Support Resources
Product Information |
C166: Incorrect Address when Initializing a PointerInformation in this article applies to:
SYMPTOMSI have written the following code:
However, when I execute this, x points to the location 0x00001 not 0x80001. Why is it only assigning my offset of 0x01 to the pointer address? CAUSEYour example uses a 16-bit pointer. When you assign an address above 0xFFFF to a 16-bit pointer, the address is truncated to the lower 16 bits. In this case 0x0001. RESOLUTIONYou can do one of two things depending on your application.
MORE INFORMATION
Last Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.