Skip to content

Commit

Permalink
Let's not treat byte values as signed. It's confusing.
Browse files Browse the repository at this point in the history
Noticed in running test suite on an Arduino Uno, which has been … non-trivial
for a while.
  • Loading branch information
anarchodin committed Mar 29, 2021
1 parent 87a55df commit ec73b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sections/macros.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

// Extracting immediates
#if PTRWIDTH == 16
#define getcharacter(x) ((char)((uintptr_t)x>>8))
#define getcharacter(x) ((unsigned char)((uintptr_t)x>>8))
#else
#define getcharacter(x) ((uintptr_t)x>>11)
#endif
Expand Down

0 comments on commit ec73b9b

Please sign in to comment.