I am trying to convert an old NRF52840 project that works with 5.70a to work with the lastest build of 7.12a.
However, it seems like the <stdint.h> is defining the integer sizes incorrectly.
This code:
Gives this warning:
This is a 32-bit processor. An unsigned int should be equal to an uint32_t correct? It seems like an "uint32_t" is defined as a long unsigned int
======= Adding Tests Size Info ===========
Display All
However, it seems like the <stdint.h> is defining the integer sizes incorrectly.
This code:
Gives this warning:
This is a 32-bit processor. An unsigned int should be equal to an uint32_t correct? It seems like an "uint32_t" is defined as a long unsigned int
======= Adding Tests Size Info ===========
C Source Code
- sprintf(intbuf, "size of int is %d\r\n", sizeof(int));
- printf(intbuf);
- sprintf(intbuf, "size of unsigned int is %d\r\n", sizeof(unsigned int));
- printf(intbuf);
- sprintf(intbuf, "size of uint32_t is %d\r\n", sizeof(uint32_t));
- printf(intbuf);
- sprintf(intbuf, "size of int32_t is %d\r\n", sizeof(int32_t));
- printf(intbuf);
The post was edited 3 times, last by lcorbin ().