diff --git a/src/basset.cpp b/src/basset.cpp index a3bb111..cb60691 100644 --- a/src/basset.cpp +++ b/src/basset.cpp @@ -155,7 +155,7 @@ class Regex { [[nodiscard]] bool match(const string &text) const; private: - [[noreturn]] void report(ssize_t errcode) const; + [[noreturn]] void report(int errcode) const; regex_t preg; }; @@ -182,7 +182,7 @@ bool Regex::match(const string &text) const { } } -void Regex::report(ssize_t errcode) const { +void Regex::report(int errcode) const { auto size = regerror(errcode, &preg, nullptr, 0); auto errbuf = make_unique(size); regerror(errcode, &preg, errbuf.get(), size);