Mercurial > octave
view .editorconfig @ 31501:2d38bc5a35db
Fix scanf edge case with '-' character in last position and '%d' conversion (bug #63383)
* oct-stream.cc (octave_scan_1): Use "is >> std::ws" at start of function
to strip whitespace from start of field. Record pointer position in new
variable pos. Remove hand-coded whitespace stripping code from '%i' case
in switch statement. After reading value, if an error is found then
re-position stream pointer with seekg() and pass error on.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 21 Nov 2022 19:56:25 -0800 |
parents | 640ee0d531d0 |
children |
line wrap: on
line source
root = true [*] charset = utf-8 end_of_line = lf indent_size = 2 indent_style = space insert_final_newline = true [*.{am,mk}] indent_size = tab indent_style = tab