Mercurial > hg > octave-nkf
diff src/pt-loop.cc @ 5246:8a4cae8ee7b7
[project @ 2005-03-26 00:17:01 by jwe]
author | jwe |
---|---|
date | Sat, 26 Mar 2005 00:17:01 +0000 |
parents | e35b034d3523 |
children | e4a97381d57d |
line wrap: on
line diff
--- a/src/pt-loop.cc +++ b/src/pt-loop.cc @@ -381,10 +381,13 @@ if (error_state) goto cleanup; - if (rhs.is_real_type ()) - DO_ND_LOOP(m_tmp); - else - DO_ND_LOOP(cm_tmp); + if (dv.numel () > 0) + { + if (rhs.is_real_type ()) + DO_ND_LOOP(m_tmp); + else + DO_ND_LOOP(cm_tmp); + } } else if (rhs.is_map ()) {