Conversation
Notices
-
Tomas SA2TMS (tomas@social.umeahackerspace.se)'s status on Monday, 18-Dec-2017 13:05:07 EST Tomas SA2TMS
Been fighting with 24-bit integers in avr-gcc today, and its positively byzantine logic when it comes to sign extension and comparisons. Its behavior would change when making some local variables global, leading to much confusion. In the end I had to have casts like (__int24)(int8_t)somebyte<<16 to get it working correctly