[Top][All Lists]

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

Re: Recent checkins

From: Simon Law
Subject: Re: Recent checkins
Date: Wed, 8 May 2002 10:09:35 -0400 (EDT)

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


reply via email to

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