Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Jul 2008 19:20:17 +0200
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        ports@freebsd.org, fjoe@freebsd.org, bug-followup <bug-followup@freebsd.org>
Subject:   Re: ports/124985: [patch] devel/dmucs unbreak on 64bits archs
Message-ID:  <48725051.3090601@FreeBSD.org>
In-Reply-To: <20080707164119.GG17123@deviant.kiev.zoral.com.ua>
References:  <200807071619.m67GJrPt096421@freefall.freebsd.org>	<487245AE.1030307@FreeBSD.org> <20080707164119.GG17123@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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@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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48725051.3090601>