3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-26 18:45:34 +00:00

Merge pull request #2339 from zachjs/display-format-0s

Allow %0s $display format specifier
This commit is contained in:
clairexen 2020-08-18 17:39:01 +02:00 committed by GitHub
commit 22765ef0a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -89,7 +89,7 @@ std::string AstNode::process_format_str(const std::string &sformat, int next_arg
case 'S':
case 'd':
case 'D':
if (got_len)
if (got_len && len_value != 0)
goto unsupported_format;
YS_FALLTHROUGH
case 'x':