summaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
Diffstat (limited to 'g10')
-rw-r--r--g10/build-packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/build-packet.c b/g10/build-packet.c
index 557dffee1..e984e3e1b 100644
--- a/g10/build-packet.c
+++ b/g10/build-packet.c
@@ -165,7 +165,7 @@ gpg_mpi_write (iobuf_t out, gcry_mpi_t a)
{
unsigned int nbits;
const void *p;
- unsigned int lenhdr[2];
+ unsigned char lenhdr[2];
p = gcry_mpi_get_opaque (a, &nbits);
lenhdr[0] = nbits >> 8;