cosmetics

This commit is contained in:
Andreas Steffen
2007-10-12 19:20:59 +00:00
parent 26c49478f3
commit 466c5439e5
+1
View File
@@ -759,6 +759,7 @@ chunk_t asn1_integer_from_mpz(const mpz_t value)
{ {
size_t bits = mpz_sizeinbase(value, 2); /* size in bits */ size_t bits = mpz_sizeinbase(value, 2); /* size in bits */
chunk_t n; chunk_t n;
n.len = 1 + bits / 8; /* size in bytes */ n.len = 1 + bits / 8; /* size in bytes */
n.ptr = mpz_export(NULL, NULL, 1, n.len, 1, 0, value); n.ptr = mpz_export(NULL, NULL, 1, n.len, 1, 0, value);