summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_export.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtommath/bn_mp_export.c')
-rw-r--r--libtommath/bn_mp_export.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libtommath/bn_mp_export.c b/libtommath/bn_mp_export.c
index 43228a8..b69a4fb 100644
--- a/libtommath/bn_mp_export.c
+++ b/libtommath/bn_mp_export.c
@@ -53,11 +53,9 @@ int mp_export(void *rop, size_t *countp, int order, size_t size,
for (i = 0; i < count; ++i) {
for (j = 0; j < size; ++j) {
- unsigned char *byte = (
- (unsigned char *)rop +
- (((order == -1) ? i : ((count - 1) - i)) * size) +
- ((endian == -1) ? j : ((size - 1) - j))
- );
+ unsigned char *byte = (unsigned char *)rop +
+ (((order == -1) ? i : ((count - 1) - i)) * size) +
+ ((endian == -1) ? j : ((size - 1) - j));
if (j >= (size - nail_bytes)) {
*byte = 0;