mirror of
https://github.com/verilator/verilator.git
synced 2025-01-08 23:57:35 +00:00
Fix clang warning
This commit is contained in:
parent
f9fd634fae
commit
252ed4c1ae
@ -109,7 +109,7 @@ std::string _vl_string_vprintf(const char* formatp, va_list ap) {
|
|||||||
char* bufp = new char[len+1];
|
char* bufp = new char[len+1];
|
||||||
VL_VSNPRINTF(bufp, len+1, formatp, ap);
|
VL_VSNPRINTF(bufp, len+1, formatp, ap);
|
||||||
std::string out = std::string(bufp, len);
|
std::string out = std::string(bufp, len);
|
||||||
delete bufp;
|
delete[] bufp;
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user