diff src/oct-stream.cc @ 3711:60db0e500f10

[project @ 2000-08-03 05:09:39 by jwe]
author jwe
date Thu, 03 Aug 2000 05:09:40 +0000
parents aef06675c94d
children 08fe5f74c7d4
line wrap: on
line diff
--- a/src/oct-stream.cc	Wed Aug 02 20:47:46 2000 +0000
+++ b/src/oct-stream.cc	Thu Aug 03 05:09:40 2000 +0000
@@ -2037,7 +2037,10 @@
 {
   double retval = 0.0;
 
-  while (val_idx < n_vals)
+  if (exhausted ())
+    curr_state = conversion_error;
+
+  while (! exhausted ())
     {
       if (! data)
 	{