[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60497] Unable to pass int64 values to oct int
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #60497] Unable to pass int64 values to oct interface reliably |
Date: |
Sun, 2 May 2021 13:40:16 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0 |
Follow-up Comment #1, bug #60497 (project octave):
OK I cannot say that I understand the logic, but at least I found a way to
have it work using "int64_scalar_value" rather than "int64_value". The latter
is a generic "static_cast<int64> (octave_value::double_value ())" and leads to
corrupted data due to the intermediate conversion to double.
Now I wonder why we need both methods?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60497>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/