properly encode string in rtlil

This commit is contained in:
Miodrag Milanovic 2022-08-09 12:45:32 +02:00
parent d2b4246a6d
commit 99f1c71582
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ void RTLIL_BACKEND::dump_const(std::ostream &f, const RTLIL::Const &data, int wi
else if (str[i] == '\t')
f << stringf("\\t");
else if (str[i] < 32)
f << stringf("\\%03o", str[i]);
f << stringf("\\%03o", (unsigned char)str[i]);
else if (str[i] == '"')
f << stringf("\\\"");
else if (str[i] == '\\')