diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-10-11 11:42:08 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-10-11 11:42:08 +0200 |
commit | 35fbc0b35fb2dafa1b7d1df98ed72688e2eeead6 (patch) | |
tree | bbeb61f87150444f2587225518eaa82c8704eef0 /frontends/ast | |
parent | 8263f6a74a822579f3c1da7d8b128ea8ab7b4d79 (diff) | |
download | yosys-35fbc0b35fb2dafa1b7d1df98ed72688e2eeead6.tar.gz yosys-35fbc0b35fb2dafa1b7d1df98ed72688e2eeead6.tar.bz2 yosys-35fbc0b35fb2dafa1b7d1df98ed72688e2eeead6.zip |
Do not the 'z' modifier in format string (another win32 fix)
Diffstat (limited to 'frontends/ast')
-rw-r--r-- | frontends/ast/ast.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc index 1e43875ae..87b073ff3 100644 --- a/frontends/ast/ast.cc +++ b/frontends/ast/ast.cc @@ -267,7 +267,7 @@ void AstNode::dumpAst(FILE *f, std::string indent) bits[i-1] == RTLIL::S1 ? '1' : bits[i-1] == RTLIL::Sx ? 'x' : bits[i-1] == RTLIL::Sz ? 'z' : '?'); - fprintf(f, "'(%zd)", bits.size()); + fprintf(f, "'(%d)", GetSize(bits)); } if (is_input) fprintf(f, " input"); @@ -471,7 +471,7 @@ void AstNode::dumpVlog(FILE *f, std::string indent) else if (bits.size() == 32) fprintf(f, "%d", RTLIL::Const(bits).as_int()); else - fprintf(f, "%zd'b %s", bits.size(), RTLIL::Const(bits).as_string().c_str()); + fprintf(f, "%d'b %s", GetSize(bits), RTLIL::Const(bits).as_string().c_str()); break; case AST_REALVALUE: |