mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix fault on with %t, bug1443.
This commit is contained in:
+3
-2
@@ -582,8 +582,9 @@ string V3Number::displayed(FileLine*fl, const string& vformat) const {
|
||||
}
|
||||
case 'e':
|
||||
case 'f':
|
||||
case 'g': {
|
||||
char tmp[MAX_SPRINTF_DOUBLE_SIZE];
|
||||
case 'g':
|
||||
case '^': { // Realtime
|
||||
char tmp[MAX_SPRINTF_DOUBLE_SIZE];
|
||||
sprintf(tmp, vformat.c_str(), toDouble());
|
||||
return tmp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user