[Top][All Lists]

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

[Gnu-arch-users] Re: 64-bit cleaning [PATCH]

From: John Goerzen
Subject: [Gnu-arch-users] Re: 64-bit cleaning [PATCH]
Date: Sat, 06 Sep 2003 22:12:03 -0500
User-agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux)

Jan Hudec <address@hidden> writes:

> Glib manual says to this topic, that on all platforms in use (perhaps
> except something very obscure -- C spec does not quarantee this)
> sizeof(int) <= sizeof(void *) <= sizeof(long)
> but neither equality holds everywhere. Thus one can safely pass int
> values around in void * and void * values in long.

That is an interesting observation, though what it doesn't express is
whether different platforms actually react positvely to passing things
of different sizes along.

In any case, the *proper* solution is a union.

-- John

reply via email to

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