changeset 18905:82773ee8119a

Fix ambiguous Matrix initialization from csetdf972b9d080a * graphics.cc (default_patch_x/ydata): explicitly use decimal numbers to initialize Matrices to double values
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Thu, 10 Jul 2014 09:52:49 +0200
parents 9addb5ad9426
children c0fb31c46e87
files libinterp/corefcn/graphics.cc
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Tue Jul 08 12:19:37 2014 +0200
+++ b/libinterp/corefcn/graphics.cc	Thu Jul 10 09:52:49 2014 +0200
@@ -329,7 +329,7 @@
 static Matrix
 default_patch_xdata (void)
 {
-  Matrix m (3, 1, 0);
+  Matrix m (3, 1, 0.0);
   m(1) = 1.0;
   return m;
 }
@@ -337,8 +337,8 @@
 static Matrix
 default_patch_ydata (void)
 {
-  Matrix m (3, 1, 1);
-  m(2) = 0;
+  Matrix m (3, 1, 1.0);
+  m(2) = 0.0;
   return m;
 }