changeset 3969:47972b28e85e

[project @ 2002-07-01 19:58:03 by jwe]
author jwe
date Mon, 01 Jul 2002 19:58:03 +0000
parents cef0ea4d1b3a
children 4f884e25aab9
files src/ChangeLog src/oct-stream.cc
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,10 +1,14 @@
 2002-07-01  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
+	* oct-stream.cc (printf_value_cache::double_value): If the current
+	element is empty and there are no more elements in the value list,
+	set curr_state to conversion_error.
+
 	* input.cc (initialize_command_input): Include (, ), {, and } as
 	word break characters.
 
 	* variables.cc (looks_like_struct): Don't evaluate text if it is a
-	function.
+	function.  From Ben Sapp <bsapp@lanl.gov>.
 
 	* symtab.h (symbol_record::is_function): Also return true if
 	symbol is a text function or a mapper function.
--- a/src/oct-stream.cc
+++ b/src/oct-stream.cc
@@ -2124,6 +2124,10 @@
 	{
 	  val_idx++;
 	  data = 0;
+
+	  if (n_elts == 0 && exhausted ())
+	    curr_state = conversion_error;
+
 	  continue;
 	}
     }