extensions/source/scanner/scanwin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit fc8047e78409328a2581e45090b5f3895360558c Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Fri Mar 20 15:59:35 2020 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Mar 20 19:15:15 2020 +0100 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 <sberg...@redhat.com> 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!"); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits