# HG changeset patch # User David Bateman # Date 1226660675 -3600 # Node ID 655193554ad21bc5b45f49dc28bb105fb1380d26 # Parent f32a91d991561ca2cbdee5be8842613b7f56b2d8 Correct use of resize_fill_value in Array2::index methods. diff --git a/liboctave/Array2.h b/liboctave/Array2.h --- a/liboctave/Array2.h +++ b/liboctave/Array2.h @@ -117,14 +117,14 @@ } Array2 index (idx_vector& i, int resize_ok = 0, - const T& rfv = resize_fill_value (T ())) const + const T& rfv = Array::resize_fill_value ()) const { Array tmp = Array::index (i, resize_ok, rfv); return Array2 (tmp, tmp.rows (), tmp.columns ()); } Array2 index (idx_vector& i, idx_vector& j, int resize_ok = 0, - const T& rfv = resize_fill_value (T ())) const + const T& rfv = Array::resize_fill_value ()) const { Array tmp = Array::index (i, j, resize_ok, rfv); return Array2 (tmp, tmp.rows (), tmp.columns ()); diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -17,6 +17,11 @@ tag. * oct-norm.cc (xnorm, xfrobnorm, xcolnorms, xrownorms): Ditto. +2008-11-14 David Bateman + + * Array2.h (Array2 Array2::index): Correct use of + resize_fill_value. + 2008-11-12 Jaroslav Hajek * DiagArray2.h (DiagArray2::maybe_delete_elements): Remove