Commit 8d73e158df56f9348203a7f151b5e28fbc93523c

Francois Perrad 2019-05-18T12:37:54

literal suffix

diff --git a/bn_mp_fwrite.c b/bn_mp_fwrite.c
index 744e5ff..2a59755 100644
--- a/bn_mp_fwrite.c
+++ b/bn_mp_fwrite.c
@@ -24,7 +24,7 @@ mp_err mp_fwrite(const mp_int *a, int radix, FILE *stream)
       return err;
    }
 
-   if (fwrite(buf, (size_t)len, 1, stream) != 1) {
+   if (fwrite(buf, (size_t)len, 1uL, stream) != 1uL) {
       MP_FREE_BUFFER(buf, (size_t)len);
       return MP_ERR;
    }
diff --git a/tommath_private.h b/tommath_private.h
index ea0777e..c64fb92 100644
--- a/tommath_private.h
+++ b/tommath_private.h
@@ -82,7 +82,7 @@ do {                                                    \
 do {                                                    \
    size_t zs_ = (size);                                 \
    char* zm_ = (char*)(mem);                            \
-   while (zs_-- > 0) {                                  \
+   while (zs_-- > 0u) {                                 \
       *zm_++ = 0;                                       \
    }                                                    \
 } while (0)