summaryrefslogtreecommitdiffstats
path: root/libtommath
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-08-29 19:55:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-08-29 19:55:52 (GMT)
commit1ef0babc38bf484a63c5bdcb56bed55f2df1bbab (patch)
tree265c8dd190a19519b3a04bbf9324206963ebd730 /libtommath
parent92265d56a363a605b8a68d54cf49aa9a11448a1f (diff)
downloadtcl-1ef0babc38bf484a63c5bdcb56bed55f2df1bbab.zip
tcl-1ef0babc38bf484a63c5bdcb56bed55f2df1bbab.tar.gz
tcl-1ef0babc38bf484a63c5bdcb56bed55f2df1bbab.tar.bz2
Fix eol-style (fossil warning: mixed line endings)
Diffstat (limited to 'libtommath')
-rw-r--r--libtommath/bn_mp_export.c10
-rw-r--r--libtommath/bn_mp_import.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/libtommath/bn_mp_export.c b/libtommath/bn_mp_export.c
index 6477dd9..58d71d5 100644
--- a/libtommath/bn_mp_export.c
+++ b/libtommath/bn_mp_export.c
@@ -31,12 +31,12 @@ int mp_export(void* rop, size_t* countp, int order, size_t size,
}
if (endian == 0) {
- union {
- unsigned int i;
- char c[4];
+ union {
+ unsigned int i;
+ char c[4];
} lint;
- lint.i = 0x01020304;
-
+ lint.i = 0x01020304;
+
endian = (lint.c[0] == 4) ? -1 : 1;
}
diff --git a/libtommath/bn_mp_import.c b/libtommath/bn_mp_import.c
index c615a84..d9248fd 100644
--- a/libtommath/bn_mp_import.c
+++ b/libtommath/bn_mp_import.c
@@ -27,12 +27,12 @@ int mp_import(mp_int* rop, size_t count, int order, size_t size,
mp_zero(rop);
if (endian == 0) {
- union {
- unsigned int i;
- char c[4];
+ union {
+ unsigned int i;
+ char c[4];
} lint;
- lint.i = 0x01020304;
-
+ lint.i = 0x01020304;
+
endian = (lint.c[0] == 4) ? -1 : 1;
}