changeset 21697:e7f641616581

Make filter work with 64-bit octave_idx_type (bug #47918). * filter.cc (Ffilter): Use octave_idx_type (not int) for x_stride.
author Lachlan Andrew <lachlanbis@gmail.com>
date Sat, 14 May 2016 10:28:20 +1000
parents b8c05cc524ef
children b766928062f5
files libinterp/corefcn/filter.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/filter.cc	Sun May 01 22:11:14 2016 +1000
+++ b/libinterp/corefcn/filter.cc	Sat May 14 10:28:20 2016 +1000
@@ -103,7 +103,7 @@
 
   y.resize (x_dims, 0.0);
 
-  int x_stride = 1;
+  octave_idx_type x_stride = 1;
   for (int i = 0; i < dim; i++)
     x_stride *= x_dims(i);