On Tue, 15 Jul 2014 10:40:10 -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.
Children these days... This variety existed since the 80s.
PDP-11 was signed, IBM 370 - unsigned.
-- Pete
--
devel mailing lis
On 16 July 2014 10:28, Florian Weimer wrote:
> On 07/16/2014 11:00 AM, Jakub Jelinek wrote:
>>
>> On Wed, Jul 16, 2014 at 10:55:57AM +0200, Florian Weimer wrote:
>>>
>>> On 07/15/2014 07:22 PM, Adam Jackson wrote:
On Tue, 2014-07-15 at 10:40 -0600, Orion Poplawski wrote:
>
> Did
On 07/16/2014 11:00 AM, Jakub Jelinek wrote:
On Wed, Jul 16, 2014 at 10:55:57AM +0200, Florian Weimer wrote:
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 pp
On Wed, Jul 16, 2014 at 10:55:57AM +0200, Florian Weimer wrote:
> 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
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
On 7/15/14, 11:40 AM, Orion Poplawski wrote:
> Did you know that "char" defaults to "signed char" on x86 but "unsigned char"
> on ppc and arm? I didn't.
>
> Just a heads up.
>
I did, because due to XFS's history, it maked an assumption that's not true on
x86.
We had -funsigned-char in the Ma
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
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
Did you know that "char" defaults to "signed char" on x86 but "unsigned char"
on ppc and arm? I didn't.
Just a heads up.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane o