|
From: | Hartmut |
Subject: | [Octave-bug-tracker] [bug #61788] arrays of type int16 contain wrong numbers |
Date: | Mon, 10 Jan 2022 16:03:37 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0 |
URL: <https://savannah.gnu.org/bugs/?61788> Summary: arrays of type int16 contain wrong numbers Project: GNU Octave Submitted by: hardy Submitted on: Mon 10 Jan 2022 09:03:35 PM UTC Category: Octave Function Severity: 3 - Normal Priority: 5 - Normal Item Group: Regression Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Release: 7.0.90 Discussion Lock: Any Operating System: Any _______________________________________________________ Details: Here is a regression (I think) that I observed with the current Octave release candidate 7.0.90. Run the following code: a = int16 ( int16(-30000) : int16(30000) ); a(end) * in Octave 7.0.90 this gives 2767 * in Octave 6.3.0 this gives 30000 * in Online-Matlab (R2021b) this gives 30000 I have observed this under linux, but I think it will be the same for all OS'ses. I found this by a failing BIST test in the image package. I could not provoke this wrong behavior with the commonly used integer type uint8, but maybe it happens also with other integer types and not only with int16. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61788> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |