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

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

[Octave-bug-tracker] [bug #48350] plot error calculating yticks on large


From: Robert Jenssen
Subject: [Octave-bug-tracker] [bug #48350] plot error calculating yticks on large constant plus small delta
Date: Sat, 23 Jul 2016 06:46:15 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36

Follow-up Comment #6, bug #48350 (project octave):

This works for me:


diff -r 6c94c7bd55e7 libinterp/corefcn/graphics.cc
--- a/libinterp/corefcn/graphics.cc     Fri Jul 22 17:09:38 2016 -0700
+++ b/libinterp/corefcn/graphics.cc     Sat Jul 23 16:17:07 2016 +1000
@@ -6849,8 +6849,8 @@
   else
     tick_sep = calc_tick_sep (lo, hi);
 
-  int i1 = static_cast<int> (std::floor (lo / tick_sep));
-  int i2 = static_cast<int> (std::ceil (hi / tick_sep));
+  int i1 = static_cast<int64_t> (std::floor (lo / tick_sep));
+  int i2 = static_cast<int64_t> (std::ceil (hi / tick_sep));
 
   if (limmode_is_auto)
     {


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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