Commit 330b980d49edf94764696b1bf11de4bca6353689

Francois Perrad 2019-05-18T11:55:27

literal char

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tommath_private.h b/tommath_private.h
index c64fb92..67ac014 100644
--- a/tommath_private.h
+++ b/tommath_private.h
@@ -83,7 +83,7 @@ do {                                                    \
    size_t zs_ = (size);                                 \
    char* zm_ = (char*)(mem);                            \
    while (zs_-- > 0u) {                                 \
-      *zm_++ = 0;                                       \
+      *zm_++ = '\0';                                    \
    }                                                    \
 } while (0)
 #  define MP_ZERO_DIGITS(mem, digits)                   \