diff liboctave/fCRowVector.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 eb63fbe60fab
children 3d6a9aea2aea
line wrap: on
line diff
--- a/liboctave/fCRowVector.cc	Thu Mar 19 17:46:38 2009 +0100
+++ b/liboctave/fCRowVector.cc	Fri Mar 20 11:39:25 2009 +0100
@@ -434,9 +434,7 @@
 {
   octave_idx_type len = a.length();
 
-  if (len < 1)
-    is.clear (std::ios::badbit);
-  else
+  if (len > 0)
     {
       FloatComplex tmp;
       for (octave_idx_type i = 0; i < len; i++)