ports/124985: [patch] devel/dmucs unbreak on 64bits archs

Pietro Cerutti gahr at FreeBSD.org
Mon Jul 7 17:20:24 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Kostik Belousov wrote:
| On Mon, Jul 07, 2008 at 06:34:54PM +0200, Pietro Cerutti wrote:
|> I definitely do not agree. Please note that a pointer is not required to
|> fit into a long, while it is required to fit into a size_t.
| I do not think that C99 requires the size_t to be capable of holding
| the pointer. size_t is only required to hold result of sizeof.

size_t is required to be of rank equal to or greater than any other
object you can create from within the C language. This implies that it
can (i.e., it is required to be able to) hold a pointer type.

|
| It is intptr_t type that shall do it.

Unfortunately intptr_t is not defined prior to C99, and I still haven't
got used to use it. Yes, that would be the preferred solution.

- --
Pietro Cerutti
gahr at FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhyUFAACgkQwMJqmJVx947UnACcDktT+bwe6LLs3/YPBief8PO3
Ku8AoN6AUlCVXmnbbyBEIdVLDORUdWpr
=IGu+
-----END PGP SIGNATURE-----


More information about the freebsd-ports mailing list