test std.cfg: Fixed wrong npos constant.

This commit is contained in:
orbitcowboy 2022-02-04 12:39:43 +01:00
parent 7062b0a973
commit 31ea13eb0c
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ void invalidFunctionArg_std_string_substr(const std::string &str, std::size_t po
(void)str.substr(pos,-1);
// no warning is expected for
(void)str.substr(pos,len);
(void)str.substr(pos, std::wstring::npos);
(void)str.substr(pos, std::string::npos);
}
void invalidFunctionArg_std_wstring_substr(const std::wstring &str, std::size_t pos, std::size_t len) {
@ -48,7 +48,7 @@ void invalidFunctionArg_std_wstring_substr(const std::wstring &str, std::size_t
(void)str.substr(pos,-1);
// no warning is expected for
(void)str.substr(pos,len);
(void)str.substr(pos, std::string::npos);
(void)str.substr(pos, std::wstring::npos);
}
double invalidFunctionArg_log10(double d = 0.0) {