Mercurial > hg > octave-nkf
diff Makefile.am @ 14806:980e2d5c83f7 stable
avoid calling putback more than once between reads
* liboctave/lo-utils.cc (octave_read_value<double>,
(octave_read_value<float>): Save stream position with tellg. On
failure, restore stream position with seekg. Avoid calling putback
multiple times between stream reads.
(octave_read_inf_nan_na, octave_read_float_inf_nan_na): Don't call
putback. Make it the caller's responsibility to reset stream
positioning on failed reads.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 26 Jun 2012 16:18:35 -0400 |
parents | 72c96de7a403 |
children | e053d1622f4e c48625614ea6 |