Commit a825e0a3601f81ddf1a6753c45e5b74d44c23d78

Francois Perrad 2019-10-20T16:37:46

handles MP_BUF in mp_error_to_string

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/mp_error_to_string.c b/mp_error_to_string.c
index a6f6fc7..1b34d02 100644
--- a/mp_error_to_string.c
+++ b/mp_error_to_string.c
@@ -17,6 +17,8 @@ const char *mp_error_to_string(mp_err code)
       return "Value out of range";
    case MP_ITER:
       return "Max. iterations reached";
+   case MP_BUF:
+      return "Buffer overflow";
    default:
       return "Invalid error code";
    }