From 7c8b6e69749099f8c4c525bbbcdda6bf2d00bd49 Mon Sep 17 00:00:00 2001 From: Hanting Zhang Date: Thu, 11 Jan 2024 03:53:59 +0000 Subject: [PATCH] fix npoints --- msm/pippenger.cuh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)