|
From: | Dan Sebald |
Subject: | [Octave-bug-tracker] [bug #54572] int64 does not saturate correctly in negative direction |
Date: | Tue, 28 Aug 2018 16:52:50 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
Follow-up Comment #19, bug #54572 (project octave): The example of Comment #16 isn't failing for me: @linux ~/octave/bug/54572 $ gcc -O2 -std=c++11 int-overflow-2.cc -lstdc++ address@hidden ~/octave/bug/54572 $ ./a.out -9223372036854775808 + -2 u: 9223372036854775806 ux: -2 uy: -9223372036854775808 (ux & uy) < 0: (~u): -9223372036854775807 __signbit (~u): 1 u: -9223372036854775808 -9223372036854775808 What compiler command are you using? What output are you seeing when it fails? _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?54572> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |