From 701d8f093a0341a8e53ec1f08bbe56194a507625 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Tue, 17 Sep 2019 21:37:55 -0700 Subject: [PATCH] Linux build fix --- src/crypto/defyx/yescrypt-platform.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crypto/defyx/yescrypt-platform.c b/src/crypto/defyx/yescrypt-platform.c index 4e503ac3..664addb0 100644 --- a/src/crypto/defyx/yescrypt-platform.c +++ b/src/crypto/defyx/yescrypt-platform.c @@ -141,7 +141,11 @@ yescrypt_init_shared(yescrypt_shared_t * shared, half1 = half2 = *shared; half1.aligned_size /= 2; +#ifdef __unix + half2.aligned += half1.aligned_size; +#else (uint8_t*)half2.aligned += half1.aligned_size; +#endif half2.aligned_size = half1.aligned_size; N /= 2;