# HG changeset patch # User thomas-weber # Date 1333486407 0 # Node ID 5991a6dffe51bdefa1feb34a391e39e551a6803f # Parent 1bf0d24544905e3c72abe580ec9dd76a4575788a Cope with the change in the behavior of ismatrix() ismatrix([]) used to return 0 in Octave 3.2, but now returns returns 1 in 3.6. Patch from Rafael Laboissiere diff -r 1bf0d2454490 -r 5991a6dffe51 main/fixed/inst/fixedpoint.m --- a/main/fixed/inst/fixedpoint.m Tue Apr 03 20:51:27 2012 +0000 +++ b/main/fixed/inst/fixedpoint.m Tue Apr 03 20:53:27 2012 +0000 @@ -180,7 +180,7 @@ error ("FAILED"); endif empty = fixed(is,ds,[]); - if (isscalar(empty) || ismatrix(empty) || !isfixed(empty) || + if (isscalar(empty) || !isfixed(empty) || isvector(empty) || !isempty(empty) || isempty(zero)) error ("FAILED"); endif @@ -278,7 +278,7 @@ error ("FAILED"); endif empty = fixed(is*(1+1i),ds*(1+1i),[]); - if (isscalar(empty) || ismatrix(empty) || !isfixed(empty) || + if (isscalar(empty) || !isfixed(empty) || isvector(empty) || !isempty(empty) || isempty(onei) || iscomplex(empty)) ## Not complex, since its type is narrowed!!