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

Home » Public Forums » archive » Integer overflow not reported
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Integer overflow not reported [message #94494] Tue, 13 June 2017 07:58 Go to previous message
Markus Schmassmann is currently offline  Markus Schmassmann
Messages: 129
Registered: April 2016
Senior Member
Hello,

Why are integer overflows not reported, although according the
documentation of CHECK_MATH [1] they should be detected?

Anything I can do to activate such warnings?
(other than changing to Windows)

An example is below.

-- Markus

IDL> rsun=696000000
IDL> help, rsun, rsun^2, long64(rsun)^2, long64(rsun)^2 mod 2ll^31
RSUN LONG = 696000000
<Expression> LONG = 327417856
<Expression> LONG64 = 484416000000000000
<Expression> LONG64 = 327417856
IDL> help, 1/0
<Expression> INT = 1
% Program caused arithmetic error: Integer divide by 0
% Detected at $MAIN$
IDL> !version
{
"ARCH": "x86_64",
"OS": "linux",
"OS_FAMILY": "unix",
"OS_NAME": "linux",
"RELEASE": "8.5",
"BUILD_DATE": "Jul 7 2015",
"MEMORY_BITS": 64,
"FILE_OFFSET_BITS": 64
}

[1] http://www.harrisgeospatial.com/docs/CHECK_MATH.html
[Message index]
 
Read Message
Read Message
Previous Topic: Download previous versions of IDL
Next Topic: IDL Widget Programming Error : XMANAGER undefined

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

Current Time: Wed Oct 08 11:19:51 PDT 2025

Total time taken to generate the page: 0.00195 seconds