]> git.xonotic.org Git - xonotic/d0_blind_id.git/blobdiff - d0_bignum-gmp.c
libtommath support: compiles, does not work yet
[xonotic/d0_blind_id.git] / d0_bignum-gmp.c
index 3b36b7da9ce384b9ed9f0f3afcd5da38260823fc..484de570d9dcffab8bdfa083679436190b0e53a9 100644 (file)
@@ -195,7 +195,7 @@ ssize_t d0_bignum_export_unsigned(const d0_bignum_t *bignum, void *buf, size_t b
                // BAD
                // mpz_sizeinbase lied to us
                // move the number
-               if(bufsize == 0)
+               if(count == 0)
                {
                        memset(buf, 0, count);
                }