Mercurial > hg > octave-nkf
comparison src/oct-stream.cc @ 3491:2c7524ffdbf5
[project @ 2000-01-28 22:44:13 by jwe]
author | jwe |
---|---|
date | Fri, 28 Jan 2000 22:44:14 +0000 |
parents | 1bb6e519a4a2 |
children | d14c483b3c12 |
comparison
equal
deleted
inserted
replaced
3490:fc5eac74640d | 3491:2c7524ffdbf5 |
---|---|
1820 { | 1820 { |
1821 is.clear (); | 1821 is.clear (); |
1822 | 1822 |
1823 int len = fmt_list.length (); | 1823 int len = fmt_list.length (); |
1824 | 1824 |
1825 retval.resize (nconv, Matrix ()); | 1825 retval.resize (nconv+1, Matrix ()); |
1826 | 1826 |
1827 const scanf_format_elt *elt = fmt_list.first (); | 1827 const scanf_format_elt *elt = fmt_list.first (); |
1828 | 1828 |
1829 int num_values = 0; | 1829 int num_values = 0; |
1830 | 1830 |
1847 break; | 1847 break; |
1848 elt = fmt_list.next (); | 1848 elt = fmt_list.next (); |
1849 } | 1849 } |
1850 } | 1850 } |
1851 | 1851 |
1852 retval.resize (num_values); | 1852 retval (nconv) = static_cast<double> (num_values); |
1853 | 1853 |
1854 if (! quit) | 1854 if (! quit) |
1855 { | 1855 { |
1856 // Pick up any trailing stuff. | 1856 // Pick up any trailing stuff. |
1857 if (ok () && len > nconv) | 1857 if (ok () && len > nconv) |