From maintainers-request at octave dot org Wed Nov 17 08:42:51 2004 Subject: Re: int octave_value::numel (void) const; From: David Bateman To: "John W. Eaton" Cc: maintainers at octave dot org Date: Wed, 17 Nov 2004 15:39:09 +0100 --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline According to John W. Eaton (on 11/16/04): > On 16-Nov-2004, David Bateman wrote: > > | Try the attached patch, though I can't test it due to the configure > | problems I'm having > > I applied these changes. > > Thanks, > > jwe You also need the attached one line patch so that the "end" keyword will work correctly for types where numel() is not the same as dims().numel()... Cheers David -- David Bateman David dot Bateman at motorola dot com Motorola CRM +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch.end" --- src/pt-arg-list.cc~ 2004-09-16 11:47:38.000000000 +0200 +++ src/pt-arg-list.cc 2004-11-17 15:32:47.000000000 +0100 at @ -129,7 +129,7 @@ { case -1: { - int numel = indexed_object->numel (); + int numel = dv.numel (); if (numel < 0) { --azLHFNyN32YCQGCU--