changeset 21399:8017ce5b2a6e

Avoid 1-th, 2-th, ... in error message of mat2cell dim mismatch (bug #47330) * cellfun.cc (mat2cell_mistmatch): "%d-th dimension" -> "dimension %d"
author Lachlan Andrew <lachlanbis@gmail.com>
date Fri, 04 Mar 2016 22:24:47 +1100
parents 7e8a410e6124
children 00960129ebf4 9429c39994f8
files libinterp/corefcn/cellfun.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/cellfun.cc	Fri Mar 04 12:51:00 2016 -0500
+++ b/libinterp/corefcn/cellfun.cc	Fri Mar 04 22:24:47 2016 +1100
@@ -1855,7 +1855,7 @@
       octave_idx_type r = i < dv.length () ? dv(i) : 1;
 
       if (s != r)
-        error ("mat2cell: mismatch on %d-th dimension (%d != %d)", i+1, r, s);
+        error ("mat2cell: mismatch on dimension %d (%d != %d)", i+1, r, s);
     }
 
   return false;