From 4726d00c56dba80d3af538e140785466e87af98d Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 4 May 2008 12:14:03 +0200 Subject: [PATCH] bernstein: numeric2value: fix typo to allow correct conversion of big values --- bernstein/src/bernstein.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bernstein/src/bernstein.cpp b/bernstein/src/bernstein.cpp index 9877170..5c99260 100644 --- a/bernstein/src/bernstein.cpp +++ b/bernstein/src/bernstein.cpp @@ -91,7 +91,7 @@ void numeric2value(const numeric& n, Value& v) for (int i = 0; i < abs_sa; ++i) { cln::cl_I digit = abs_n & mask; v[0]._mp_d[i] = cl_I_to_limb(digit); - abs_n >> GMP_LIMB_BITS; + abs_n = abs_n >> GMP_LIMB_BITS; } v[0]._mp_size = n < 0 ? -abs_sa : abs_sa; -- 2.11.4.GIT