Fixed for MinGW
This commit is contained in:
parent
eb126cba55
commit
f9bc70234f
2 changed files with 7 additions and 3 deletions
|
@ -141,10 +141,10 @@ yescrypt_init_shared(yescrypt_shared_t * shared,
|
||||||
|
|
||||||
half1 = half2 = *shared;
|
half1 = half2 = *shared;
|
||||||
half1.aligned_size /= 2;
|
half1.aligned_size /= 2;
|
||||||
#ifdef __unix
|
#ifdef _MSC_VER
|
||||||
half2.aligned += half1.aligned_size;
|
|
||||||
#else
|
|
||||||
(uint8_t*)half2.aligned += half1.aligned_size;
|
(uint8_t*)half2.aligned += half1.aligned_size;
|
||||||
|
#else
|
||||||
|
half2.aligned += half1.aligned_size;
|
||||||
#endif
|
#endif
|
||||||
half2.aligned_size = half1.aligned_size;
|
half2.aligned_size = half1.aligned_size;
|
||||||
N /= 2;
|
N /= 2;
|
||||||
|
|
|
@ -820,7 +820,11 @@ yescrypt_init_shared(yescrypt_shared_t * shared,
|
||||||
|
|
||||||
half1 = half2 = *shared;
|
half1 = half2 = *shared;
|
||||||
half1.aligned_size /= 2;
|
half1.aligned_size /= 2;
|
||||||
|
#ifdef _MSC_VER
|
||||||
(uint8_t*)half2.aligned += half1.aligned_size;
|
(uint8_t*)half2.aligned += half1.aligned_size;
|
||||||
|
#else
|
||||||
|
half2.aligned += half1.aligned_size;
|
||||||
|
#endif
|
||||||
half2.aligned_size = half1.aligned_size;
|
half2.aligned_size = half1.aligned_size;
|
||||||
N /= 2;
|
N /= 2;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue