From 96ec9acf84d6eba753d6a2482b78acbf293544a5 Mon Sep 17 00:00:00 2001 From: Zachary Snow Date: Sun, 9 Aug 2020 09:31:57 -0600 Subject: Allow %0s $display format specifier --- frontends/ast/simplify.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontends') 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': -- cgit v1.2.3