summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-03-20 15:59:35 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-03-20 19:15:15 +0100
commitfc8047e78409328a2581e45090b5f3895360558c (patch)
tree8d81d1f38ce95c148763c5c206c71dbe874de3d2 /extensions
parent3ca8fe5c0d51e6728dae949a143e63291d7043bc (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/scanner/scanwin.cxx2
1 files changed, 1 insertions, 1 deletions
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<DWORD>(hDup);
+ DWORD nDup = static_cast<DWORD>(reinterpret_cast<sal_uIntPtr>(hDup));
if (reinterpret_cast<HANDLE>(nDup) != hDup)
throw std::exception("HANDLE does not fit to 32 bit - cannot pass to shim!");