comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: 'ffff'x is negative in 5.2 positive in 5.2.1
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: 'ffff'x is negative in 5.2 positive in 5.2.1 [message #17438] Wed, 27 October 1999 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Karri Kaksonen (karri.kaksonen@picker.fi) writes:

> I just upgraded an Alpha Windows NT workstation to run
> version 5.2 of IDL.
>
> The old versions of IDL treated 'ffff'x as a positive number.
> In version 5.2 for the Alpha it is negative and in 5.2.1 for
> Intel it is positive again.
>
> print, 11 gt 'ffff'x
>
> A bit confusing... I wonder what other implications this may
> have on peoples software.

Indeed, this "anomaly" was introduced with the change to
unsigned integers in IDL 5.2. It's previous behavior was
fixed in IDL 5.2.1. But one could argue that since this
is a long integer, it should really be written correctly
like this anyway:

print, ll gt 'ffff'xL

This works correctly under both versions of IDL. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: pulldown menu with multiple selections
Next Topic: Re: IDL 5.2.1 -- bug in filled contours?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:44:00 PDT 2025

Total time taken to generate the page: 0.00517 seconds