restore correct datatype

This commit is contained in:
2022-01-16 19:54:06 +01:00
parent 01e700af54
commit a45423692e
3 changed files with 3 additions and 3 deletions

View File

@@ -148,7 +148,7 @@ std::string string_substring(const std::string & str, long pos, size_t count) {
return str.substr(start_pos, count);
}
size_t string_find_substr(const std::string & str, const std::string & pattern, size_t pos) {
long string_find_substr(const std::string & str, const std::string & pattern, size_t pos) {
if (pos >= str.size()) {
throw std::invalid_argument("Invalid parameter(s) for string-find.");
}