comparison 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
comparison
equal deleted inserted replaced
21565:08baf0ebc9a9 21566:02826fb0f261
2882 is.get (); 2882 is.get ();
2883 if (width_left) 2883 if (width_left)
2884 width_left--; 2884 width_left--;
2885 } 2885 }
2886 valid = false; 2886 valid = false;
2887 while (width_left-- && is && (ch = is.get ()) >= '0' && ch1 <= '9') 2887 while (width_left-- && is && (ch = is.get ()) >= '0' && ch <= '9')
2888 { 2888 {
2889 exp = exp*10 + ch - '0'; 2889 exp = exp*10 + ch - '0';
2890 valid = true; 2890 valid = true;
2891 } 2891 }
2892 width_left++; 2892 width_left++;