summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/Libgcrypt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirOTR/Libgcrypt')
-rw-r--r--plugins/MirOTR/Libgcrypt/random/rndw32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirOTR/Libgcrypt/random/rndw32.c b/plugins/MirOTR/Libgcrypt/random/rndw32.c
index f1a4105762..2ca69f16b3 100644
--- a/plugins/MirOTR/Libgcrypt/random/rndw32.c
+++ b/plugins/MirOTR/Libgcrypt/random/rndw32.c
@@ -828,10 +828,10 @@ _gcry_rndw32_gather_random_fast (void (*add)(const void*, size_t,
and milliseconds since Windows was started. */
{
- byte buffer[20*sizeof(ulong)], *bufptr;
+ byte buffer[20*sizeof(HANDLE)], *bufptr;
bufptr = buffer;
-#define ADD(f) do { ulong along = (ulong)(f); \
+#define ADD(f) do { ULONG_PTR along = (ULONG_PTR)(f); \
memcpy (bufptr, &along, sizeof (along) ); \
bufptr += sizeof (along); \
} while (0)