mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Use std:: for mem and str functions.
This commit is contained in:
+2
-2
@@ -150,7 +150,7 @@ double VString::parseDouble(const string& str, bool* successp) {
|
||||
char* endp = strgp;
|
||||
const double d = strtod(strgp, &endp);
|
||||
const size_t parsed_len = endp - strgp;
|
||||
if (parsed_len != strlen(strgp)) {
|
||||
if (parsed_len != std::strlen(strgp)) {
|
||||
if (successp) *successp = false;
|
||||
}
|
||||
VL_DO_DANGLING(delete[] strgp, strgp);
|
||||
@@ -402,7 +402,7 @@ void VHashSha256::selfTest() {
|
||||
|
||||
string VName::dehash(const string& in) {
|
||||
static const char VHSH[] = "__Vhsh";
|
||||
static const size_t DOT_LEN = strlen("__DOT__");
|
||||
static const size_t DOT_LEN = std::strlen("__DOT__");
|
||||
std::string dehashed;
|
||||
|
||||
// Need to split 'in' into components separated by __DOT__, 'last_dot_pos'
|
||||
|
||||
Reference in New Issue
Block a user