Hacker News new | ask | show | jobs
by dzaima 48 days ago
...I guess you don't use any C compilers targeting x86-64 then? Cause on all the main configurations in my testing (gcc+linux, clang+linux, clang+windows, msvc+windows) x86-64 uses signed char. As such more programs probably break with forced unsigned char than signed char.
2 comments

I checked and you're right. It's been a long time since I've programmed in C. I shall have myself flogged forthwith.
it's one of the ABI differences between x86 and arm. on arm, char is an unsigned char