From cc4009450a586c04b685bce0ea78414f0a9b0aee Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 8 Jan 2019 03:04:11 -0500 Subject: [PATCH] Clear early GCC warning --- cryptest.nmake | 1 + tweetnacl.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cryptest.nmake b/cryptest.nmake index 1a39a2c8..0da80cc7 100644 --- a/cryptest.nmake +++ b/cryptest.nmake @@ -237,6 +237,7 @@ cryptopp.dump: cryptlib.lib cryptopp.map: $(LD) $(LDFLAGS) /DLL /MAP /MAPINFO:EXPORTS $(LIB_OBJS) mv cryptlib.map cryptopp.map + get-content somefile.txt | %{$_ -replace "cryptlib","cryptopp"} cryptopp.def: cryptopp.dump dump2def.exe cryptopp.dump cryptopp.def diff --git a/tweetnacl.cpp b/tweetnacl.cpp index aec6210e..466dc1e7 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 = -1; + *mlen = ~static_cast(0); if (n < 64) return -1; if (unpackneg(q,pk)) return -1;