From 3a18d73cc1d25d05f3fda3d31b91e64fab543905 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 8 Jan 2019 12:33:13 -0500 Subject: [PATCH] Use W64LIT instead of word64 cast --- tweetnacl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweetnacl.cpp b/tweetnacl.cpp index 466dc1e7..c7547183 100644 --- a/tweetnacl.cpp +++ b/tweetnacl.cpp @@ -884,7 +884,7 @@ int crypto_sign_open(byte *m,word64 *mlen,const byte *sm,word64 n,const byte *pk byte t[32],h[64]; gf p[4],q[4]; - *mlen = ~static_cast(0); + *mlen = ~W64LIT(0); if (n < 64) return -1; if (unpackneg(q,pk)) return -1;