aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_crypto.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-03 10:33:50 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-03 10:33:50 -0400
commit52884f56d43670f1960d9354ccc3ace9a048e283 (patch)
tree298e3f789a003cc9f08e4f8e24bf93964711b60c /src/test/test_crypto.c
parentcf0b07c2e5284325fb89f2c8ee3ad99f5ed02195 (diff)
downloadtor-52884f56d43670f1960d9354ccc3ace9a048e283.tar.gz
tor-52884f56d43670f1960d9354ccc3ace9a048e283.zip
Replace U64_LITERAL with the standard UINT64_C
Diffstat (limited to 'src/test/test_crypto.c')
-rw-r--r--src/test/test_crypto.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c
index ecbc6745d7..c72c07dd14 100644
--- a/src/test/test_crypto.c
+++ b/src/test/test_crypto.c
@@ -195,10 +195,10 @@ test_crypto_rng(void *arg)
j = crypto_rand_int(100);
if (j < 0 || j >= 100)
allok = 0;
- big = crypto_rand_uint64(U64_LITERAL(1)<<40);
- if (big >= (U64_LITERAL(1)<<40))
+ big = crypto_rand_uint64(UINT64_C(1)<<40);
+ if (big >= (UINT64_C(1)<<40))
allok = 0;
- big = crypto_rand_uint64(U64_LITERAL(5));
+ big = crypto_rand_uint64(UINT64_C(5));
if (big >= 5)
allok = 0;
d = crypto_rand_double();
@@ -2806,8 +2806,8 @@ test_crypto_siphash(void *arg)
{ 0x72, 0x45, 0x06, 0xeb, 0x4c, 0x32, 0x8a, 0x95, }
};
- const struct sipkey K = { U64_LITERAL(0x0706050403020100),
- U64_LITERAL(0x0f0e0d0c0b0a0908) };
+ const struct sipkey K = { UINT64_C(0x0706050403020100),
+ UINT64_C(0x0f0e0d0c0b0a0908) };
uint8_t input[64];
int i, j;