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

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

[Octave-bug-tracker] [bug #51682] No error issued for left division of s


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #51682] No error issued for left division of scalar_double_type \ integer_matrix_type, also wrong answer
Date: Thu, 8 Mar 2018 17:54:29 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Update of bug #51682 (project octave):

                  Status:               Confirmed => Ready For Test         

    _______________________________________________________

Follow-up Comment #3:

It turns out that this was a one-line fix for a likely cut and paste error.  I
pushed the following changeset to stable and merged with default:

http://hg.savannah.gnu.org/hgweb/octave/rev/dfc017e465f2

Now I see:


octave> is = int8 (10); im = int8 ([10, 20; 30, 40]);
octave> r = 5 \ is, class (r)
r = 2
ans = int8
octave> r = single (5) \ is, class (r)
r = 2
ans = int8
octave> r = 5 \ im, class (r)
r =

  2  4
  6  8

ans = int8
octave> r = single (5) \ im, class (r)
r =

  2  4
  6  8

ans = int8


and so on for other integer types.

Am I missing something, or do we not have a set of tests for integer
arithmetic?  Maybe we can do something systematic and cover a large set of
cases at once in one of the code sprints next week.

Please close this report if the problem is fixed for you.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51682>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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