From 247dffb6c9a24894f094392ce62f2aa2e81a8acc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 7 May 2016 03:17:44 +0200 Subject: Fix zsave translation for tomsfastmath and libtommath MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- bench/libtommath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bench/libtommath.h') diff --git a/bench/libtommath.h b/bench/libtommath.h index f502618..aebcc95 100644 --- a/bench/libtommath.h +++ b/bench/libtommath.h @@ -377,7 +377,7 @@ zptest(z_t w, z_t a, int t) static inline size_t zsave(z_t a, char *b) { - _tmp = b ? mp_signed_bin_size(a) : mp_to_signed_bin(a, (unsigned char *)b); + _tmp = !b ? mp_signed_bin_size(a) : mp_to_signed_bin(a, (unsigned char *)b); return _tmp; } -- cgit v1.2.3-70-g09d2