[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A bug in Mac OS version?



Hello,

This is a rather curious bug that I noticed after I upgraded to 5.2. Of
course this may not be a bug but if I am being really stupid, please let
me know.

IDL> print, !version
{ PowerMac MacOS MacOS 5.2 Oct 30 1998}
IDL> print, '0000FF'x
     255
IDL> print, '00FF00'x
    -256
IDL> print, 'FF0000'x
    16711680

Shouldn't '00FF00'x be equivalent to 65280? Is this behavior also repeated
on other platforms?

- Saeid

-- 
Saeid Zoonematkermani
Dept. of Physics & Astronomy
State University of New York
Stony Brook, NY  11794-3800

EMail: Saeid.Zoonematkermani@sunysb.edu
Voice: (+1) (516) 632-8237           Fax:   (+1) (516) 632-8742