bug-hurd
[Top][All Lists]
Advanced

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

Re: Recent checkins


From: Thomas Bushnell, BSG
Subject: Re: Recent checkins
Date: 08 May 2002 09:22:39 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Simon Law <address@hidden> writes:

> On Wed, 8 May 2002, James Morrison wrote:
> 
> > 2) cthreads.c: RESULT is cast to (int)(long), aren't int supposed to be the
> > same size as longs?  If so, why would RESULT need to be cast twice?
> 
>       Actually, int is not the same as long int.  According to the
> ANSI spec, int should be at least 16 bits wide.  The way the modifiers
> to int work is:
> 
>       short int <= int <= long int

And we know more specifically that:

short int < int = long int.

Thomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]