mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix misc bad-syntax crashes, bug1533.
This commit is contained in:
+2
-1
@@ -113,7 +113,8 @@ string AstNode::encodeName(const string& namein) {
|
||||
// a user identifier nor a temp we create in Verilator.
|
||||
// We also do *NOT* use __DOT__ etc, as we search for those
|
||||
// in some replacements, and don't want to mangle the user's names.
|
||||
char hex[10]; sprintf(hex, "__0%02X", pos[0]);
|
||||
unsigned val = pos[0] & 0xff; // Mask to avoid sign extension
|
||||
char hex[10]; sprintf(hex, "__0%02X", val);
|
||||
out += hex;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user