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

Home » Public Forums » archive » Re: Bug in ISHFT? (NOT)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Bug in ISHFT? (NOT) [message #39657 is a reply to message #39652] Sun, 30 May 2004 21:06 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Craig Markwardt <craigmnet@REMOVEcow.physics.wisc.edu> writes:
> Would anybody call this a bug in IDL?
>
> IDL> print, ishft(6UL,40UL)
> 1536
> IDL> print, ishft(6UL,8UL)
> 1536
>
> ISHFT only seems to handle integers up to 32 bits, and then wraps
> around.

... or rather, I had a bug in my brain. Somehow I was mixing up
unsigned long and unsigned long64. My mistake.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Previous Topic: Keywords in DLM
Next Topic: About call_external, AUTO_GLUE and gcc

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

Current Time: Thu Oct 16 01:43:12 PDT 2025

Total time taken to generate the page: 0.88253 seconds