From 5c4011b3b4a65f77ed1712921568a5b0efca167e Mon Sep 17 00:00:00 2001 From: Tesfa Mael Date: Wed, 23 Dec 2020 12:09:35 -0800 Subject: [PATCH] cast to int --- wolfcrypt/src/sp_int.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/sp_int.c b/wolfcrypt/src/sp_int.c index 53fe07a11..af1c9c244 100644 --- a/wolfcrypt/src/sp_int.c +++ b/wolfcrypt/src/sp_int.c @@ -2338,7 +2338,7 @@ int sp_cond_swap_ct(sp_int * a, sp_int * b, int c, int m) return MP_MEM; #endif - t->used = (a->used ^ b->used) & mask; + t->used = (int)((a->used ^ b->used) & mask); for (i = 0; i < c; i++) { t->dp[i] = (a->dp[i] ^ b->dp[i]) & mask; }