changeset 22700:a9b4476a734e stable

avoid compilation error for 64-bit indexing * libinterp/corefcn/fft.cc (Fdlmread): Cast literal integer argument to octave_idx_type in the constructor of idx_vector.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Mon, 31 Oct 2016 12:54:05 +0100
parents 2100cd2e1be0
children 8e71fd674bcf
files libinterp/corefcn/fft.cc
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/fft.cc	Sun Oct 30 19:47:32 2016 -0700
+++ b/libinterp/corefcn/fft.cc	Mon Oct 31 12:54:05 2016 +0100
@@ -115,7 +115,7 @@
       octave_value_list idx (ndims);
       for (octave_idx_type i = 0; i < ndims; i++)
         idx(i) = idx_vector::colon;
-      idx(dim) = idx_vector (0);
+      idx(dim) = idx_vector (static_cast <octave_idx_type> (0));
 
       return arg.do_index_op (idx);
     }
@@ -301,4 +301,3 @@
 %!
 %! assert (ifft (S), s, 4*N*eps ("single"));
 */
-