summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);