sal/qa/osl/setthreadname/test-setthreadname.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 49ef699834738192904915a547e60039db84c783 Author: Stephan Bergmann <[email protected]> AuthorDate: Mon Nov 24 10:20:56 2025 +0100 Commit: Stephan Bergmann <[email protected]> CommitDate: Mon Nov 24 12:50:17 2025 +0100 Adapt to fix of C++ LWG 172 ...<https://cplusplus.github.io/LWG/issue172> "Inconsistent types for basic_istream::ignore()" Change-Id: I3a19b0528cd5c532501a09e4df706e50d9411d5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194423 Reviewed-by: Stephan Bergmann <[email protected]> Tested-by: Jenkins diff --git a/sal/qa/osl/setthreadname/test-setthreadname.cxx b/sal/qa/osl/setthreadname/test-setthreadname.cxx index d33a0eddda9d..d2a33725c14b 100644 --- a/sal/qa/osl/setthreadname/test-setthreadname.cxx +++ b/sal/qa/osl/setthreadname/test-setthreadname.cxx @@ -43,7 +43,7 @@ void TestThread::run() { // On Windows, setting thread names appears to only take effect when the // process is being debugged, so attach a debugger now: std::cout << "set: "; - std::cin.ignore(std::numeric_limits< int >::max(), ' '); + std::cin.ignore(std::numeric_limits< std::streamsize >::max(), ' '); } #endif setName("TestThread"); @@ -51,7 +51,7 @@ void TestThread::run() { // On Linux, the thread name can now be observed with "ps -L"; on // Windows, the thread name can now be observed in a debugger. std::cout << "stop: "; - std::cin.ignore(std::numeric_limits< int >::max(), ' '); + std::cin.ignore(std::numeric_limits< std::streamsize >::max(), ' '); } }
