Commit cc3be565016b45134aef3f26cc7f4db5fe1c03fa

Steffen Jaeckel 2019-05-09T09:31:49

Merge pull request #246 from libtom/error-string 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: