Mercurial > octave-nkf
comparison src/ov-float.cc @ 9469:c6edba80dfae
sanity checks for loading sparse matrices
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 29 Jul 2009 12:15:27 -0400 |
parents | eb63fbe60fab |
children | bcdf878e2686 |
comparison
equal
deleted
inserted
replaced
9468:5af462716bff | 9469:c6edba80dfae |
---|---|
137 } | 137 } |
138 | 138 |
139 bool | 139 bool |
140 octave_float_scalar::load_ascii (std::istream& is) | 140 octave_float_scalar::load_ascii (std::istream& is) |
141 { | 141 { |
142 scalar = octave_read_float (is); | 142 scalar = octave_read_value<float> (is); |
143 if (!is) | 143 if (!is) |
144 { | 144 { |
145 error ("load: failed to load scalar constant"); | 145 error ("load: failed to load scalar constant"); |
146 return false; | 146 return false; |
147 } | 147 } |