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

Home » Public Forums » archive » Re: Feature, or bug?
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: Feature, or bug? [message #80231] Mon, 21 May 2012 10:13 Go to previous message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
> Hmmmm... Well check_math _does_ claim that it will report integer
> overflow, in bit 1.
>
> But I wouldn't be using check_math to check for that condition in the
> construct I was using anyway, so it's moot that check_math apparently
> falls down on the job, at least in this case.
>
> Thanks for the explanation.
>
> whd
>
>>
>> regards,
>> Lajos

The check_math help says: "Some hardware/operating system combinations may not report all of the math errors listed." Integer overflow is listed, but not checked and reported :-)

Integer overflow is "undefined behaviour" in standard C, so it can not be done in a portable way. The glibc manual says:

FPE_INTOVF_TRAP

Integer overflow (impossible in a C program unless you enable overflow trapping in a hardware-specific fashion).

regards,
Lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Subscription 'daily digest' problems?
Next Topic: Shut down X connection?

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

Current Time: Sat Oct 11 05:47:24 PDT 2025

Total time taken to generate the page: 1.12589 seconds