diff liboctave/fNDArray.cc @ 8999:dc07bc4157b8

allow empty matrices in stream input operators
author Jaroslav Hajek <highegg@gmail.com>
date Fri, 20 Mar 2009 11:39:25 +0100
parents a48fba01e4ac
children 8145f2255276
line wrap: on
line diff
--- a/liboctave/fNDArray.cc	Thu Mar 19 17:46:38 2009 +0100
+++ b/liboctave/fNDArray.cc	Fri Mar 20 11:39:25 2009 +0100
@@ -920,9 +920,7 @@
 {
   octave_idx_type nel = a.nelem ();
 
-  if (nel < 1 )
-    is.clear (std::ios::badbit);
-  else
+  if (nel > 0)
     {
       float tmp;
       for (octave_idx_type i = 0; i < nel; i++)