# HG changeset patch # User jwe # Date 965279380 0 # Node ID 60db0e500f101bac6a1040055c899cc4c75b941d # Parent 9a77deefb8c9199ad42990fec88301b1b5f3c150 [project @ 2000-08-03 05:09:39 by jwe] diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2000-08-03 John W. Eaton + + * 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 * dirfns.cc (Flink, Fsymlink, Freadlink): New functions. diff --git a/src/oct-stream.cc b/src/oct-stream.cc --- a/src/oct-stream.cc +++ b/src/oct-stream.cc @@ -2037,7 +2037,10 @@ { double retval = 0.0; - while (val_idx < n_vals) + if (exhausted ()) + curr_state = conversion_error; + + while (! exhausted ()) { if (! data) {