Re: unsigned char vs. signed char

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

 



According the standard, char is supposed to be a distinct type from
signed/unsigned char.
btw, most commonly-used compilers (gcc, msvc, etc.) does use these
defaults, but you can't even assume that for every compilers.
If one wants to check the signedness of char, she could check CHAR_MIN
is equal to zero or SCHAR_MIN (from limits.h)

Regards,
H.
-- 
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