octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #61300] integer range might exceed upper limit


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #61300] integer range might exceed upper limit
Date: Sun, 28 Nov 2021 13:14:49 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 Edg/96.0.1054.34

Follow-up Comment #14, bug #61300 (project octave):

I'm not sure if this is the right way to fix this. IIUC, the whole point of
introducing integer type ranges was to correctly support ranges above
flintmax.
Would that still be working correctly when we cast to `double`?

Could we instead use the `value ()` function of the octave_int type to get the
underlying C++ type value? IIUC, C++ arithmetic would do the right thing in
this case.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61300>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]