aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAki Van Ness <aki@yosyshq.com>2022-03-10 11:03:51 -0500
committerN. Engelhardt <nakengelhardt@gmail.com>2022-04-08 08:05:15 +0200
commit2e792857e9f26078b65d969d9ad2a1c27326b330 (patch)
tree38be02d115025bdcd1fd8331f3b27f9fa6c588b4
parentcae5ea833747e8a5bb5916277d963460712ac890 (diff)
downloadyosys-2e792857e9f26078b65d969d9ad2a1c27326b330.tar.gz
yosys-2e792857e9f26078b65d969d9ad2a1c27326b330.tar.bz2
yosys-2e792857e9f26078b65d969d9ad2a1c27326b330.zip
pass jny: fixed the backslash escape for strings
-rw-r--r--backends/jny/jny.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/backends/jny/jny.cc b/backends/jny/jny.cc
index 763d186ac..8025d42d2 100644
--- a/backends/jny/jny.cc
+++ b/backends/jny/jny.cc
@@ -55,8 +55,7 @@ struct JnyWriter
for(; itr != str.end(); ++itr) {
switch (*itr) {
case '\\': {
- newstr += *itr++;
- newstr += *itr;
+ newstr += "\\\\";
break;
} case '\n': {
newstr += "\\n";