Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: andru@tonic.lcs.mit.edu (Andrew Myers)
Subject: Re: Comparing 64-bit pointers with Alpha cxx
Date: 23 Mar 94 02:09:58	[thread overview]
Message-ID: <ANDRU.94Mar23020958@tonic.lcs.mit.edu> (raw)
In-Reply-To: coates@kelvin.physics.uq.oz.au's message of 22 Mar 94 15:57:36

In article <COATES.94Mar22155736@kelvin.physics.uq.oz.au> coates@kelvin.physics.uq.oz.au (Tony Coates) writes:

   I am having a problem, because I need to compare two
   pointers.  It appears that cxx, like the DEC c89 C compiler, doesn't
   support 64-bit integer data types, for some arcane reason.  And,
   unfortunately, the pointer comparison (<) seems to first require an
   implicit conversion to an integer type.  So, I am getting warmings
   about conversion of pointers to a type which is too small, which I
   consider a pretty serious warning.
	   Can anyone give me a hint as to how one can compare 64-bit
   pointers, or how to avoid this implicit conversion to integer?  I
   would be really grateful for any hints at all that anyone can give to
   me.

The type "long" is 64 bits. The POSIX defined type "ptrdiff_t" should
be a reasonably portable thing to cast pointers to.

-- Andrew


  reply	other threads:[~1994-03-23  7:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-03-22 20:57 Comparing 64-bit pointers with Alpha cxx Tony Coates
1994-03-23  7:09 ` Andrew Myers [this message]
1994-03-23 17:08 ` John Tromp
1994-03-23 22:03 ` Gerald Feldman USG
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox