diff options
author | whitequark <whitequark@whitequark.org> | 2020-04-06 18:31:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 18:31:15 +0000 |
commit | b494d4c6565bcf0ef063e632a51b215e199ea22e (patch) | |
tree | fbc928458b5838bc8f057db825a93fa052ec950c | |
parent | d22888ce746b7e1afef9b797cf2aeef1542247cb (diff) | |
download | yosys-b494d4c6565bcf0ef063e632a51b215e199ea22e.tar.gz yosys-b494d4c6565bcf0ef063e632a51b215e199ea22e.tar.bz2 yosys-b494d4c6565bcf0ef063e632a51b215e199ea22e.zip |
read_ilang: improve style. NFC.
Co-Authored-By: Alberto Gonzalez <61295559+boqwxp@users.noreply.github.com>
-rw-r--r-- | frontends/ilang/ilang_lexer.l | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/frontends/ilang/ilang_lexer.l b/frontends/ilang/ilang_lexer.l index e36818e4f..62f53d18e 100644 --- a/frontends/ilang/ilang_lexer.l +++ b/frontends/ilang/ilang_lexer.l @@ -90,7 +90,7 @@ USING_YOSYS_NAMESPACE [0-9]+'[01xzm-]* { rtlil_frontend_ilang_yylval.string = strdup(yytext); return TOK_VALUE; } -?[0-9]+ { - char *end = NULL; + char *end = nullptr; long value = strtol(yytext, &end, 10); if (end != yytext + strlen(yytext)) return TOK_INVALID; // literal out of range of long @@ -146,4 +146,3 @@ USING_YOSYS_NAMESPACE void *rtlil_frontend_ilang_avoid_input_warnings() { return (void*)&yyinput; } - |