projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cae5ea8
)
pass jny: fixed the backslash escape for strings
author
Aki Van Ness
<aki@yosyshq.com>
Thu, 10 Mar 2022 16:03:51 +0000
(11:03 -0500)
committer
N. Engelhardt
<nakengelhardt@gmail.com>
Fri, 8 Apr 2022 06:05:15 +0000
(08:05 +0200)
backends/jny/jny.cc
patch
|
blob
|
history
diff --git
a/backends/jny/jny.cc
b/backends/jny/jny.cc
index 763d186ac77e338809cc6085a02c6f15259928e7..8025d42d26f47a857f487daf61dc03b10c279dbc 100644
(file)
--- 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";