summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2016-02-21 08:19:41 -0800
committerNorbert Thiebaud <nthiebaud@gmail.com>2016-02-21 23:28:24 +0000
commit3496535a3754438f314b7b143e7223b498ca3ec9 (patch)
treeeef1342316f02fbbb1f434a78ba471b840843d0d /sal
parent981a62f8511416e679a35cdb11195e2149d81138 (diff)
WaE vs2015: pointer to int casting
Change-Id: I3be393ef5a9d1ed732f44037cd1115960a6186d2 Reviewed-on: https://gerrit.libreoffice.org/22592 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/w32/random.c b/sal/osl/w32/random.c
index ca1a809645bb..78ea5bfae27f 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);