<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Mon, 06 Feb 1995 11:25:58 +0000
From   : jfid@... (James Fidell)
Subject: Re: Elite Bug - solved?

D.LODGE@... wrote:

> >My PPC compiler defaults to 4 byte ints whereas Think C are 2 byte
> >ints. I think this is the problem.
> 
> Methinks this shows the advantages of specifically using
> 'short ints' :)

Apart from the fact that the C language specification doesn't insist on
short ints being 16 bits either.  The rules are just that :

	sizeof(long) >= sizeof(int) >= sizeof(short int) >= sizeof(char)

(which also is why the PPC can have 32-bit ints and Think C can have 16-bit
ints).

James.


-- 
 "Yield to temptation --             |     jfid@...        
  it may not pass your way again"    |  http://www.mfltd.co.uk/~jfid/
                                     |
        - Lazarus Long               |              James Fidell


<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>