From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,f9bcef78c4b3c0ab,start X-Google-Attributes: gid109fba,public X-Google-Thread: 1164f8,f9bcef78c4b3c0ab,start X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,f9bcef78c4b3c0ab,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-03-23 02:09:58 PST Xref: gmd.de comp.unix.osf.osf1:2648 comp.sys.dec:14587 comp.lang.c++:50212 Path: gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!MathWorks.Com!yeshua.marcam.com!usc!nic-nac.CSU.net!charnel.net.csuchico.edu!charnel!olivea!grapevine.lcs.mit.edu!grapevine.lcs.mit.edu!andru From: andru@tonic.lcs.mit.edu (Andrew Myers) Newsgroups: comp.unix.osf.osf1,comp.sys.dec,comp.lang.c++ Subject: Re: Comparing 64-bit pointers with Alpha cxx Date: 23 Mar 94 02:09:58 Organization: MIT Laboratory for Computer Science Distribution: world Message-ID: References: NNTP-Posting-Host: tonic.lcs.mit.edu In-reply-to: coates@kelvin.physics.uq.oz.au's message of 22 Mar 94 15:57:36 In article 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