* Re: Pointer comparison with DEC AXP (Alpha) cxx
@ 1994-03-24 1:43 Tony Coates
0 siblings, 0 replies; only message in thread
From: Tony Coates @ 1994-03-24 1:43 UTC (permalink / raw)
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 ...
_____________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1994-03-24 1:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-03-24 1:43 Pointer comparison with DEC AXP (Alpha) cxx Tony Coates
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox