Commit b6636ee46ace49e7dd2f0d08640fa9f99f95b213

Francois Perrad 2015-10-11T19:02:01

uppercase L avoid confusion between lowercase l and digit 1

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_mp_get_long.c b/bn_mp_get_long.c
index 8286082..7f2a54b 100644
--- a/bn_mp_get_long.c
+++ b/bn_mp_get_long.c
@@ -31,7 +31,7 @@ unsigned long mp_get_long(mp_int * a)
   /* get most significant digit of result */
   res = DIGIT(a,i);
 
-#if ULONG_MAX != 0xfffffffful || DIGIT_BIT < 32
+#if ULONG_MAX != 0xffffffffuL || DIGIT_BIT < 32
   while (--i >= 0) {
     res = (res << DIGIT_BIT) | DIGIT(a,i);
   }