aboutsummaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorZachary Snow <zach@zachjs.com>2020-08-09 09:31:57 -0600
committerZachary Snow <zach@zachjs.com>2020-08-09 17:19:49 -0400
commit96ec9acf84d6eba753d6a2482b78acbf293544a5 (patch)
tree22176405717b1c6f84c45749225d10d8ca4881f3 /frontends
parent9a4f420b4b8285bd05181b6988c35ce45e3c979a (diff)
downloadyosys-96ec9acf84d6eba753d6a2482b78acbf293544a5.tar.gz
yosys-96ec9acf84d6eba753d6a2482b78acbf293544a5.tar.bz2
yosys-96ec9acf84d6eba753d6a2482b78acbf293544a5.zip
Allow %0s $display format specifier
Diffstat (limited to 'frontends')
-rw-r--r--frontends/ast/simplify.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc
index 66f22e113..3a652d6cd 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':