diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-05-07 03:17:44 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-05-07 03:17:44 +0200 |
| commit | 247dffb6c9a24894f094392ce62f2aa2e81a8acc (patch) | |
| tree | 2daabc69b193b7f79304998fb2bde4a39b5106e9 /bench/libtommath.h | |
| parent | Optimisations (diff) | |
| download | libzahl-247dffb6c9a24894f094392ce62f2aa2e81a8acc.tar.gz libzahl-247dffb6c9a24894f094392ce62f2aa2e81a8acc.tar.bz2 libzahl-247dffb6c9a24894f094392ce62f2aa2e81a8acc.tar.xz | |
Fix zsave translation for tomsfastmath and libtommath
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'bench/libtommath.h')
| -rw-r--r-- | bench/libtommath.h | 2 |
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; } |
