From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7e61e9cb2ddf93fc,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-03-23 20:43:24 PST Path: gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!msuinfo!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!dingo.cc.uq.oz.au!coates From: coates@kelvin.physics.uq.oz.au (Tony Coates) Newsgroups: comp.sys.dec Subject: Re: Pointer comparison with DEC AXP (Alpha) cxx Date: 23 Mar 94 20:43:24 Organization: Department of Physics, The University of Queensland Distribution: world Message-ID: Reply-To: coates@physics.uq.oz.au NNTP-Posting-Host: kelvin.physics.uq.oz.au In an earlier posting on this subject, I made a terrible mistake. I had thought that I had a compiler warning with DEC's cxx compiler that was telling me that in a comparision (<) of two 64-bit pointers, the pointers were being coerced to 32-bit integers before the comparison was made. This had me worried. I discovered today a terrible error on my part. Ridiculous as this may seem, I was looking at the correct line number, but the wrong file. I was looking at the header file rather than the .cc file. It was an unfortunate co-incidence that the header file had, on the same line, an inline function with the same pointers involved. In fact, the warning was due to a coercion of a pointer to `int', which was quickly fixed by changing the coercion to `long'. My apologies for my spurious post. Tony. _____________________________________________________________________________ A.B.Coates, Dept. of Physics, The University of Queensland QLD 4072 Australia. Email: coates@physics.uq.oz.au Phone: (07/+617) 365-3424 Fax: (07/+617) 365-1242 Disclaimer: The University is ignorant of my opinions, let alone guilty ... _____________________________________________________________________________ -- _____________________________________________________________________________ A.B.Coates, Dept. of Physics, The University of Queensland QLD 4072 Australia. Email: coates@physics.uq.oz.au Phone: (07/+617) 365-3424 Fax: (07/+617) 365-1242 Disclaimer: The University is ignorant of my opinions, let alone guilty ... _____________________________________________________________________________