# HG changeset patch # User Michael Goffioul # Date 1209140264 14400 # Node ID 6848970153ba5e2e1b59284bd258d91abd2e0e96 # Parent 2dee19385d32f869a2bd0a2b6cd3de5a108850c9 do not use output value of fill_n (not supported by MSVC). diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2008-04-25 Michael Goffioul + + * oct-lookup.h (seq_lookup): Do not use output value of fill_n (MSVC + does not support it). + 2008-04-24 Michael Goffioul * lo-sysdep.cc (octave_popen2): Don't set PIPE_NOWAIT for parentWrite. diff --git a/liboctave/oct-lookup.h b/liboctave/oct-lookup.h --- a/liboctave/oct-lookup.h +++ b/liboctave/oct-lookup.h @@ -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; }