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

Re: warning bei make



On Wed, Feb 12, 2003 at 04:15:18PM +0100, Bertram Scharpf wrote:


Das was du schreibst ist komplett falsch.


>...
> In C ist
> 
>     short int        immer 2 Byte
>     long int         immer 4 Byte
>...

Laut Absatz 5.2.4.2.1 des C-Standards sind das aber nur Mindestgroessen
und groessere short und long sind erlaubt.

> Unter Linux ist also `int' dasselbe wie `long int'. Die Warnung
> ist also nicht problematisch.

Schmarrn.

Unter Linux sind auf allen 64-Bit-Plattformen int 4 Byte und
long int 8 Byte (Ausnahmen sind nur 64-Bit-Kernel mit 32-Bit-Userspace).

> Gruß
> Bertram
>...

Gruss
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



Reply to: