From fa987e60b785361ebe65d9fac912ed5f26e24080 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 13 Aug 2015 10:37:45 +0000 Subject: 64-bit fix git-svn-id: http://svn.miranda-ng.org/main/trunk@14938 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirOTR/Libgcrypt/random/rndw32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') 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) -- cgit v1.2.3