|
|
Log in / Subscribe / Register

Malcolm: Usability improvements in GCC 8

Malcolm: Usability improvements in GCC 8

Posted Mar 20, 2018 17:19 UTC (Tue) by mathstuf (subscriber, #69389)
In reply to: Malcolm: Usability improvements in GCC 8 by nix
Parent article: Malcolm: Usability improvements in GCC 8

In C, "char", "signed char", and "unsigned char" are all three distinct types. "char" may or may not be signed, but it is not 100% replaceable with the explicit variants.

See this[1] SO answer.

[1]https://stackoverflow.com/questions/75191/what-is-an-unsi...


to post comments

Malcolm: Usability improvements in GCC 8

Posted Mar 21, 2018 14:31 UTC (Wed) by nix (subscriber, #2304) [Link]

Yes indeed: I kind of assumed that knowledge from the readers. This was a bug in implementation code that was erroneously assuming the identity of char and signed char, and fell over when ported to a platform in which the C char type was unsigned.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds