# HG changeset patch # User Rik # Date 1398356558 25200 # Node ID 3994a1c2b9941157f4fb777f0c1dedc1b68f3371 # Parent 01aa90ece9a4f15d861c53307bbb2c9e8161400e spy.m: Use nnz, not numel, to avoid overflowing octave_idx_type (bug #42116). spy.m: Use nnz, not numel, to avoid overflowing octave_idx_type (bug #42116). diff -r 01aa90ece9a4 -r 3994a1c2b994 scripts/sparse/spy.m --- a/scripts/sparse/spy.m Wed Apr 23 22:40:24 2014 -0700 +++ b/scripts/sparse/spy.m Thu Apr 24 09:22:38 2014 -0700 @@ -34,7 +34,7 @@ endif markersize = NaN; - if (numel (x) < 1000) + if (nnz (x) < 1000) line_spec = "*"; else line_spec = ".";