comparison libinterp/corefcn/cellfun.cc @ 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 a4faec57f4c8
children ad0599a0acc6
comparison
equal deleted inserted replaced
21398:7e8a410e6124 21399:8017ce5b2a6e
1853 s += d[i](j); 1853 s += d[i](j);
1854 1854
1855 octave_idx_type r = i < dv.length () ? dv(i) : 1; 1855 octave_idx_type r = i < dv.length () ? dv(i) : 1;
1856 1856
1857 if (s != r) 1857 if (s != r)
1858 error ("mat2cell: mismatch on %d-th dimension (%d != %d)", i+1, r, s); 1858 error ("mat2cell: mismatch on dimension %d (%d != %d)", i+1, r, s);
1859 } 1859 }
1860 1860
1861 return false; 1861 return false;
1862 } 1862 }
1863 1863