From c11287a0ad54aec96c496dc0d2bb5c2d4a2e3dfd Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Thu, 23 May 2019 15:49:55 +0200 Subject: [PATCH] latest version of ltm deprecated DIGIT_BIT --- src/math/ltm_desc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/math/ltm_desc.c b/src/math/ltm_desc.c index 56b46ef0..93873d38 100644 --- a/src/math/ltm_desc.c +++ b/src/math/ltm_desc.c @@ -424,10 +424,14 @@ static int set_rand(void *a, int size) return mpi_to_ltc_error(mp_rand(a, size)); } +#ifndef MP_DIGIT_BIT +#define MP_DIGIT_BIT DIGIT_BIT +#endif + const ltc_math_descriptor ltm_desc = { "LibTomMath", - (int)DIGIT_BIT, + (int)MP_DIGIT_BIT, &init, &init_copy,