From fc8047e78409328a2581e45090b5f3895360558c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 20 Mar 2020 15:59:35 +0100 Subject: Silence -Werror,-Wvoid-pointer-to-int-cast (LLVM 10 trunk clang-cl) Change-Id: I14a10a34036f0ffdecc16f05f4bbc4ffaed18900 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90801 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- extensions/source/scanner/scanwin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/source/scanner/scanwin.cxx b/extensions/source/scanner/scanwin.cxx index a346b4b5064c..58fca685fac3 100644 --- a/extensions/source/scanner/scanwin.cxx +++ b/extensions/source/scanner/scanwin.cxx @@ -253,7 +253,7 @@ void Twain::ShimListenerThread::execute() ThrowLastError("DuplicateHandle"); // we will not need our copy as soon as shim has its own inherited one ScopedHANDLE hScopedDup(hDup); - DWORD nDup = reinterpret_cast(hDup); + DWORD nDup = static_cast(reinterpret_cast(hDup)); if (reinterpret_cast(nDup) != hDup) throw std::exception("HANDLE does not fit to 32 bit - cannot pass to shim!"); -- cgit v1.2.3