handles MP_BUF in mp_error_to_string

This commit is contained in:
Francois Perrad 2019-10-20 16:37:46 +02:00
parent 5b2aad8868
commit a825e0a360

View File

@ -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";
}