changeset 3711:60db0e500f10

[project @ 2000-08-03 05:09:39 by jwe]
author jwe
date Thu, 03 Aug 2000 05:09:40 +0000
parents 9a77deefb8c9
children 7066a8065e7e
files src/ChangeLog src/oct-stream.cc
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Aug 02 20:47:46 2000 +0000
+++ b/src/ChangeLog	Thu Aug 03 05:09:40 2000 +0000
@@ -1,3 +1,8 @@
+2000-08-03  John W. Eaton  <jwe@bevo.che.wisc.edu>
+
+	* oct-stream.cc (printf_value_cache::double_value): Also set
+	curr_stat to conversion_error if there are no values at all.
+
 2000-08-02  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* dirfns.cc (Flink, Fsymlink, Freadlink): New functions.
--- 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)
 	{