Mercurial > octave
changeset 28586:703458652e30
lex.ll (base_lexer::handle_number): Eliminate shadowed variable warnings.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 17 Jul 2020 16:56:53 -0400 |
parents | 3623c94ad285 |
children | 6310bb807752 |
files | libinterp/parse-tree/lex.ll |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll Fri Jul 17 13:37:35 2020 -0700 +++ b/libinterp/parse-tree/lex.ll Fri Jul 17 16:56:53 2020 -0400 @@ -3007,7 +3007,7 @@ bool unsigned_val = true; int bytes = -1; - std::string size_str; + if (pos == std::string::npos) { size_t num_digits = yytxt.length (); @@ -3157,8 +3157,8 @@ bool unsigned_val = true; int bytes = -1; - std::string size_str; - if (pos == std::string::npos) + +if (pos == std::string::npos) { size_t num_digits = yytxt.length ();