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

Norbert Thiebaud nthiebaud at gmail.com
Sun Feb 21 23:28:48 UTC 2016


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

New commits:
commit 3496535a3754438f314b7b143e7223b498ca3ec9
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Sun Feb 21 08:19:41 2016 -0800

    WaE vs2015: pointer to int casting
    
    Change-Id: I3be393ef5a9d1ed732f44037cd1115960a6186d2
    Reviewed-on: https://gerrit.libreoffice.org/22592
    Reviewed-by: David Ostrovsky <david at ostrovsky.org>
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>

diff --git a/sal/osl/w32/random.c b/sal/osl/w32/random.c
index ca1a809..78ea5bf 100644
--- a/sal/osl/w32/random.c
+++ b/sal/osl/w32/random.c
@@ -16,7 +16,7 @@ int osl_get_system_random_data(char* buffer, size_t desired_len)
     unsigned int val;
 
     /* if unaligned fill to alignment */
-    if((int)buffer & 3)
+    if((uintptr_t)buffer & 3)
     {
         size_t len = 4 - ((size_t)(buffer) & 3);
 


More information about the Libreoffice-commits mailing list