# HG changeset patch # User jwe # Date 953928094 0 # Node ID 71b4ccd27162bddca54799e4a8cd829732440b94 # Parent 9add655e8b8cc13a281295eb4e5a4e115497c541 [project @ 2000-03-24 20:01:33 by jwe] diff --git a/src/oct-stream.cc b/src/oct-stream.cc --- a/src/oct-stream.cc +++ b/src/oct-stream.cc @@ -1991,7 +1991,7 @@ operator bool () const { return (curr_state == ok); } bool exhausted (void) - { return (curr_state == list_exhausted || val_idx + 1 >= n_vals); } + { return (curr_state == list_exhausted || val_idx >= n_vals); } bool looking_at_string (void); diff --git a/test/octave.test/io/io.exp b/test/octave.test/io/io.exp --- a/test/octave.test/io/io.exp +++ b/test/octave.test/io/io.exp @@ -43,7 +43,7 @@ do_test sscanf-4.m set test printf-1 -set prog_output "test: 1\nans = 2" +set prog_output "test: 1\nans = 8" do_test printf-1.m set test printf-2 diff --git a/test/octave.test/io/sprintf-1.m b/test/octave.test/io/sprintf-1.m --- a/test/octave.test/io/sprintf-1.m +++ b/test/octave.test/io/sprintf-1.m @@ -1,3 +1,3 @@ [s, msg, status] = sprintf ("%s: %d\n", "test", 1); -s == "test: 1\n" && isstr (msg) && status == 2 +s == "test: 1\n" && isstr (msg) && status == 8