Would you like signs with those chars?
Would you like signs with those chars?
Posted Oct 25, 2022 6:42 UTC (Tue) by eru (subscriber, #2753)In reply to: Would you like signs with those chars? by lisch
Parent article: Would you like signs with those chars?
In my experience, x86 developers are more likely to unwittingly think of char as unsigned.
Maybe because some early C compilers for the PC worked this way. Like Lattice C. The original 16-bit 8086 did not have the sign-extending 8-bit load as a single instruction, so it was more efficient to treat char as unsigned.
