From d2c167e9a8eb4b1178ce47dd4edc422d90835f37 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Tue, 30 Oct 2012 07:49:19 +0000 Subject: [PATCH] - And fixed order --- library/bignum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/bignum.c b/library/bignum.c index 922da81b5..a3201a6b1 100644 --- a/library/bignum.c +++ b/library/bignum.c @@ -406,8 +406,8 @@ int mpi_write_string( const mpi *X, int radix, char *s, size_t *slen ) if( c == 0 && k == 0 && ( i + j + 3 ) != 0 ) continue; - *(p++) = "0123456789ABCDEF" [c % 16]; *(p++) = "0123456789ABCDEF" [c / 16]; + *(p++) = "0123456789ABCDEF" [c % 16]; k = 1; } }