changeset 7735:6848970153ba

do not use output value of fill_n (not supported by MSVC).
author Michael Goffioul <michael.goffioul@gmail.com>
date Fri, 25 Apr 2008 12:17:44 -0400
parents 2dee19385d32
children a059b5679fbb
files liboctave/ChangeLog liboctave/oct-lookup.h
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Fri Apr 25 12:16:42 2008 -0400
+++ b/liboctave/ChangeLog	Fri Apr 25 12:17:44 2008 -0400
@@ -1,3 +1,8 @@
+2008-04-25  Michael Goffioul <michael.goffioul@gmail.com>
+
+	* oct-lookup.h (seq_lookup): Do not use output value of fill_n (MSVC
+	does not support it).
+
 2008-04-24  Michael Goffioul  <michael.goffioul@gmail.com>
 
 	* lo-sysdep.cc (octave_popen2): Don't set PIPE_NOWAIT for parentWrite.
--- a/liboctave/oct-lookup.h	Fri Apr 25 12:16:42 2008 -0400
+++ b/liboctave/oct-lookup.h	Fri Apr 25 12:17:44 2008 -0400
@@ -132,7 +132,8 @@
                                  bind2nd (comp, *(cur-1)));
 
           // store index of the current interval.
-          idx = std::fill_n (idx, vnew - vcur, cur - table);
+          std::fill_n (idx, vnew - vcur, cur - table);
+	  idx += (vnew - vcur);
           vcur = vnew;
 
         }