Commit 5a4e81c1ea015cf1968dbe3a0781207de5b7a7b0

Francois Perrad 2019-10-10T20:32:02

literal suffix

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_mp_to_ubin.c b/bn_mp_to_ubin.c
index 5e4a5da..1681ca7 100644
--- a/bn_mp_to_ubin.c
+++ b/bn_mp_to_ubin.c
@@ -19,7 +19,7 @@ mp_err mp_to_ubin(const mp_int *a, unsigned char *buf, size_t maxlen, size_t *wr
       return err;
    }
 
-   for (x = count; x --> 0;) {
+   for (x = count; x --> 0u;) {
 #ifndef MP_8BIT
       buf[x] = (unsigned char)(t.dp[0] & 255u);
 #else