Mercurial > octave
diff libinterp/corefcn/oct-stream.cc @ 21566:02826fb0f261
textscan: Fix bug in exponent parsing
* oct-stream.cc (textscan::read_double): Fix typo in exponent read loop.
* file-io.cc: Add BIST test for exponent parsing.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Wed, 30 Mar 2016 17:28:43 -0700 |
parents | 6c2fd62db1f7 |
children | 3d25f9f4a62b |
line wrap: on
line diff
--- a/libinterp/corefcn/oct-stream.cc Sat Mar 26 19:46:49 2016 +1100 +++ b/libinterp/corefcn/oct-stream.cc Wed Mar 30 17:28:43 2016 -0700 @@ -2884,7 +2884,7 @@ width_left--; } valid = false; - while (width_left-- && is && (ch = is.get ()) >= '0' && ch1 <= '9') + while (width_left-- && is && (ch = is.get ()) >= '0' && ch <= '9') { exp = exp*10 + ch - '0'; valid = true;