Add missing return statements

This commit is contained in:
Ben Edgington 2021-02-05 13:54:04 +00:00
parent 0558dbaba8
commit 4d2c26a428
1 changed files with 3 additions and 0 deletions

View File

@ -36,9 +36,12 @@ void poly_eval(blst_fr *out, const poly *p, const blst_fr *x) {
if (p->length == 0) {
fr_from_uint64(out, 0);
return;
}
if (fr_is_zero(x)) {
*out = p->coeffs[0];
return;
}
// Horner's method