diff options
author | clairexen <claire@symbioticeda.com> | 2020-08-18 17:39:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 17:39:01 +0200 |
commit | 22765ef0a5ff5af9f6efae9b5443afa7bccfb4e5 (patch) | |
tree | 4c07a29c0fdb3f3736bbef8a8e5236c4990edab2 /frontends | |
parent | 4aa0dc4dc76a02ec0281c0596880a3ef8609bacd (diff) | |
parent | 96ec9acf84d6eba753d6a2482b78acbf293544a5 (diff) | |
download | yosys-22765ef0a5ff5af9f6efae9b5443afa7bccfb4e5.tar.gz yosys-22765ef0a5ff5af9f6efae9b5443afa7bccfb4e5.tar.bz2 yosys-22765ef0a5ff5af9f6efae9b5443afa7bccfb4e5.zip |
Merge pull request #2339 from zachjs/display-format-0s
Allow %0s $display format specifier
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/ast/simplify.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 778a91024..ed46e9e32 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -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': |