mirror of https://github.com/YosysHQ/yosys.git
Bugfix in Verilog string handling
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
e041ae3c6d
commit
17ceab92a9
|
@ -274,7 +274,7 @@ YOSYS_NAMESPACE_END
|
||||||
yystr[j++] = yystr[i++];
|
yystr[j++] = yystr[i++];
|
||||||
}
|
}
|
||||||
yystr[j] = 0;
|
yystr[j] = 0;
|
||||||
frontend_verilog_yylval.string = new std::string(yystr);
|
frontend_verilog_yylval.string = new std::string(yystr, j);
|
||||||
free(yystr);
|
free(yystr);
|
||||||
return TOK_STRING;
|
return TOK_STRING;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue