Re: unsigned char vs. signed char

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/15/2014 07:22 PM, Adam Jackson wrote:
On Tue, 2014-07-15 at 10:40 -0600, Orion Poplawski wrote:
Did you know that "char" defaults to "signed char" on x86 but "unsigned char"
on ppc and arm?  I didn't.

Yep, found that out the hard way.  It annoyed me enough that I went
digging in the gcc source to find the answer for all platforms:

http://ajax.fedorapeople.org/is-char-signed-or-not.txt

Any idea why aarch64 and ppc64le got this wrong?

(Signed chars were at the top of my list of proposed ABI fixes for ppc64le. *sigh*)

--
Florian Weimer / Red Hat Product Security
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux