diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-13 10:37:45 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-13 10:37:45 +0000 |
commit | fa987e60b785361ebe65d9fac912ed5f26e24080 (patch) | |
tree | 181ca758088c4048dbf347e206bc8cd97c5f6fe9 /plugins/MirOTR/Libgcrypt/random | |
parent | efb1e5afa42bf750c905c16956f29c8a3a8689b5 (diff) |
64-bit fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@14938 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/Libgcrypt/random')
-rw-r--r-- | plugins/MirOTR/Libgcrypt/random/rndw32.c | 4 |
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) |