fix compile warnings in ed25519 code
This commit is contained in:
@@ -268,8 +268,8 @@ int sha512(const unsigned char *message, size_t message_len, unsigned char *out)
|
||||
{
|
||||
sha512_context ctx;
|
||||
int ret;
|
||||
if (ret = sha512_init(&ctx)) return ret;
|
||||
if (ret = sha512_update(&ctx, message, message_len)) return ret;
|
||||
if (ret = sha512_final(&ctx, out)) return ret;
|
||||
if ((ret = sha512_init(&ctx))) return ret;
|
||||
if ((ret = sha512_update(&ctx, message, message_len))) return ret;
|
||||
if ((ret = sha512_final(&ctx, out))) return ret;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user