From 8a03f8e4b3c4964136f8f80b3bc28e6e5b1136ee Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 28 Jan 2021 14:53:04 +0300 Subject: [PATCH] gcc compilation fixed --- src/common/int-util.h | 1 - src/crypto/crypto-ops.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/int-util.h b/src/common/int-util.h index dde4e01f..ddf06dfe 100644 --- a/src/common/int-util.h +++ b/src/common/int-util.h @@ -10,7 +10,6 @@ #include #include #include -#include #if defined(_MSC_VER) #include diff --git a/src/crypto/crypto-ops.c b/src/crypto/crypto-ops.c index 7553a1cb..7b4e50dd 100644 --- a/src/crypto/crypto-ops.c +++ b/src/crypto/crypto-ops.c @@ -3754,9 +3754,9 @@ void ge_bytes_hash_to_ec(ge_p3 *res, const unsigned char *ge_bytes) ge_p2 point; ge_p1p1 point2; - cn_fast_hash(ge_bytes, 32, h); + cn_fast_hash(ge_bytes, 32, (char*)h); ge_fromfe_frombytes_vartime(&point, &h[0]); - /*ge_p2_to_p3(res, &point); /* -- can be used to avoid multiplication by 8 for debugging */ + /*ge_p2_to_p3(res, &point); -- can be used to avoid multiplication by 8 for debugging */ ge_mul8(&point2, &point); ge_p1p1_to_p3(res, &point2); }