Commit 53c30fff5f18c9780aea9dd4a60e180371e5b2c5

Daniel Mendler 2019-05-09T04:16:24

add MP_ERR to mp_error_to_string

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bn_mp_error_to_string.c b/bn_mp_error_to_string.c
index 59595eb..97b35ae 100644
--- a/bn_mp_error_to_string.c
+++ b/bn_mp_error_to_string.c
@@ -9,6 +9,8 @@ const char *mp_error_to_string(int code)
    switch (code) {
    case MP_OKAY:
       return "Successful";
+   case MP_ERR:
+      return "Unknown error";
    case MP_MEM:
       return "Out of heap";
    case MP_VAL: