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

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

[Octave-bug-tracker] [bug #48873] Matlab incompatibilities in plot routi


From: Rik
Subject: [Octave-bug-tracker] [bug #48873] Matlab incompatibilities in plot routines revealed through dump_plot_demos
Date: Fri, 26 Aug 2016 16:11:22 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #8, bug #48873 (project octave):

@Pantxo: I pushed your solution for clipping here
(http://hg.savannah.gnu.org/hgweb/octave/rev/4dfb28724863).  I made one
change.  Since the values being compared were floats I used float constants
for comparison.  In other words


x < 0.     // This is comparion to double (0)
x < 0.0f   // This is comparison to float (0).


It probably doesn't make much of a difference since the compiler should be
able to see that the value is static at compile time and put in a float rather
than a double, but I thought I would make the code clear on that point.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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