Commit ae307cd887a4314254a92247de38300f31b68b2f

Steffen Jaeckel 2014-10-13T15:41:52

fix compiler warning

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/bn_mp_set_long.c b/bn_mp_set_long.c
index 7751016..10e63c5 100644
--- a/bn_mp_set_long.c
+++ b/bn_mp_set_long.c
@@ -18,10 +18,11 @@
 /* set a platform dependent unsigned long int */
 int mp_set_long (mp_int * a, unsigned long b)
 {
-  int     x, res;
+  unsigned int  x;
+  int           res;
 
   mp_zero (a);
-  
+
   /* set four bits at a time */
   for (x = 0; x < sizeof(unsigned long) * 2; x++) {
     /* shift the number up four bits */