aboutsummaryrefslogtreecommitdiffstats
path: root/bench/libtommath.h
diff options
context:
space:
mode:
Diffstat (limited to 'bench/libtommath.h')
-rw-r--r--bench/libtommath.h2
1 files changed, 1 insertions, 1 deletions
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;
}