From d4f0c79272ed7662b6a101086094e411543734b6 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Mon, 13 Mar 2017 12:18:45 +1000 Subject: [PATCH] Cast for Windows --- wolfcrypt/src/integer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/integer.c b/wolfcrypt/src/integer.c index 6736b18e4..1c8fd87d3 100644 --- a/wolfcrypt/src/integer.c +++ b/wolfcrypt/src/integer.c @@ -4103,7 +4103,7 @@ int mp_sub_d (mp_int * a, mp_digit b, mp_int * c) /* subtract first digit */ *tmpc = *tmpa - b; if (b > *tmpa++) - mu = ((-*tmpc) >> DIGIT_BIT) + 1; + mu = (mp_digit)(((-*tmpc) >> DIGIT_BIT) + 1); else mu = *tmpc >> DIGIT_BIT; *tmpc++ &= MP_MASK;