diff --git a/msm/pippenger.cuh b/msm/pippenger.cuh index c8f5e58..104da21 100644 --- a/msm/pippenger.cuh +++ b/msm/pippenger.cuh @@ -841,15 +841,15 @@ static RustError mult_pippenger(point_t *out, const affine_t points[], size_t np template -static RustError mult_pippenger_with(point_t *out, msm_context_t *msm_context, +static RustError mult_pippenger_with(point_t *out, msm_context_t *msm_context, size_t npoints, const scalar_t scalars[], bool mont = true, size_t ffi_affine_sz = sizeof(affine_t)) { try { - msm_t msm{nullptr, msm_context->npoints, false}; + msm_t msm{nullptr, npoints, false}; msm.set_d_points(msm_context->d_points); - return msm.invoke(*out, nullptr, msm_context->npoints, + return msm.invoke(*out, nullptr, npoints, scalars, mont, ffi_affine_sz); } catch (const cuda_error &e)