# HG changeset patch # User John W. Eaton # Date 1412520408 14400 # Node ID 3978a5509f40ffc964162be443465f984764558f # Parent 4b6f87c6739fd2465ce7c7805aa09e9764213f19# Parent 0279c601b49ce5d539b1ae938e8ec562b63f1ced maint: Periodic merge of stable to gui-release. diff -r 4b6f87c6739f -r 3978a5509f40 libinterp/corefcn/ls-hdf5.h --- a/libinterp/corefcn/ls-hdf5.h Sun Oct 05 11:36:29 2014 +0200 +++ b/libinterp/corefcn/ls-hdf5.h Sun Oct 05 10:46:48 2014 -0400 @@ -204,7 +204,7 @@ const char *attr_name, void *buf); #ifdef USE_64_BIT_IDX_T -#define H5T_NATIVE_IDX H5T_NATIVE_LONG +#define H5T_NATIVE_IDX H5T_NATIVE_INT64 #else #define H5T_NATIVE_IDX H5T_NATIVE_INT #endif diff -r 4b6f87c6739f -r 3978a5509f40 libinterp/corefcn/urlwrite.cc --- a/libinterp/corefcn/urlwrite.cc Sun Oct 05 11:36:29 2014 +0200 +++ b/libinterp/corefcn/urlwrite.cc Sun Oct 05 10:46:48 2014 -0400 @@ -299,7 +299,7 @@ \n\ @example\n\ @group\n\ -urlwrite (\"ftp://ftp.octave.org/pub/octave/README\",\n\ +urlwrite (\"ftp://ftp.octave.org/pub/README\",\n\ \"README.txt\");\n\ @end group\n\ @end example\n\ @@ -462,7 +462,7 @@ in string @var{s}. For example:\n\ \n\ @example\n\ -s = urlread (\"ftp://ftp.octave.org/pub/octave/README\");\n\ +s = urlread (\"ftp://ftp.octave.org/pub/README\");\n\ @end example\n\ \n\ The variable @var{success} is 1 if the download was successful,\n\ diff -r 4b6f87c6739f -r 3978a5509f40 libinterp/parse-tree/pt-eval.cc --- a/libinterp/parse-tree/pt-eval.cc Sun Oct 05 11:36:29 2014 +0200 +++ b/libinterp/parse-tree/pt-eval.cc Sun Oct 05 10:46:48 2014 -0400 @@ -336,21 +336,10 @@ Range rng = rhs.range_value (); octave_idx_type steps = rng.nelem (); - double b = rng.base (); - double increment = rng.inc (); for (octave_idx_type i = 0; i < steps; i++) { - // Use multiplication here rather than declaring a - // temporary variable outside the loop and using - // - // tmp_val += increment - // - // to avoid problems with limited precision. Also, this - // is consistent with the way Range::matrix_value is - // implemented. - - octave_value val (b + i * increment); + octave_value val (rng.elem (i)); ult.assign (octave_value::op_asn_eq, val);