[Libreoffice-commits] core.git: sal/osl

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Mon Feb 3 19:27:37 UTC 2020


 sal/osl/w32/process.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 86af52b119eaf57b7c1f8943cc1c6631f2044482
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Feb 3 16:17:36 2020 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Feb 3 20:27:02 2020 +0100

    Remove unnecessary cast
    
    Change-Id: I675d9e0a87a54eb08abfca114864369b326fb128
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87882
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sal/osl/w32/process.cxx b/sal/osl/w32/process.cxx
index d052aa15e72e..81f05e84777f 100644
--- a/sal/osl/w32/process.cxx
+++ b/sal/osl/w32/process.cxx
@@ -218,7 +218,7 @@ oslProcessError SAL_CALL osl_getProcessInfo(oslProcess Process, oslProcessData F
 
             lpAddress = static_cast<LPBYTE>(lpAddress) + Info.RegionSize;
         }
-        while (reinterpret_cast<uintptr_t>(lpAddress) <= uintptr_t(0x7FFFFFFF)); // 2GB address space
+        while (reinterpret_cast<uintptr_t>(lpAddress) <= 0x7FFFFFFFU); // 2GB address space
 
         pInfo->Fields |= osl_Process_HEAPUSAGE;
     }


More information about the Libreoffice-commits mailing list