From 141210dcc066997e2b7c899a7ad4b153bbd4061e Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 16 Mar 2017 14:56:03 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20warning=20with=20"implicit=20conversion?= =?UTF-8?q?=20loses=20integer=20precision=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 a6f1a5793..63d5c0293 100644 --- a/wolfcrypt/src/integer.c +++ b/wolfcrypt/src/integer.c @@ -3912,7 +3912,7 @@ int mp_set_int (mp_int * a, unsigned long b) /* use direct mp_set if b is less than mp_digit max */ if (b < MP_DIGIT_MAX) { - return mp_set (a, b); + return mp_set (a, (mp_digit)b); } mp_zero (a);