Mercurial > hg > octave-max
diff src/ls-mat5.cc @ 6823:9fddcc586065
[project @ 2007-08-24 08:27:27 by dbateman]
author | dbateman |
---|---|
date | Fri, 24 Aug 2007 08:27:29 +0000 |
parents | ed74670db09b |
children | 9dabcb305dda |
line wrap: on
line diff
--- a/src/ls-mat5.cc +++ b/src/ls-mat5.cc @@ -1725,7 +1725,7 @@ if (chm.nelem () > 2) ret += PAD (2 * chm.nelem ()); } - else if (cname == "sparse") + else if (tc.is_sparse_type ()) { if (tc.is_complex_type ()) { @@ -1916,7 +1916,7 @@ flags |= MAT_FILE_UINT32_CLASS; else if (cname == "uint64") flags |= MAT_FILE_UINT64_CLASS; - else if (cname == "sparse") + else if (tc.is_sparse_type ()) { flags |= MAT_FILE_SPARSE_CLASS; if (tc.is_complex_type ()) @@ -2013,7 +2013,7 @@ os.write (padbuf, paddedlength - len); } } - else if (cname == "sparse") + else if (tc.is_sparse_type ()) { if (tc.is_complex_type ()) {