VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/jitterentropy-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Crypto/jitterentropy-base.c')
-rw-r--r--src/Crypto/jitterentropy-base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Crypto/jitterentropy-base.c b/src/Crypto/jitterentropy-base.c
index c3856b41..b7512532 100644
--- a/src/Crypto/jitterentropy-base.c
+++ b/src/Crypto/jitterentropy-base.c
@@ -53,7 +53,7 @@
#ifdef TC_WINDOWS_DRIVER
-#define UINT64_MAX 0xffffffffffffffffU
+#define UINT64_MAX 0xffffffffffffffffui64
#else
#include <stdint.h>
#endif
@@ -345,7 +345,7 @@ static uint64_t jent_loop_shuffle(struct rand_data *ec,
* We add a lower boundary value to ensure we have a minimum
* RNG loop count.
*/
- return (shuffle + (1<<min));
+ return (shuffle + (1ULL<<min));
}
/**