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)
commitd2f4a7137d403a7acf2b9cffe545c8350245ae54 (patch)
tree265c8dd190a19519b3a04bbf9324206963ebd730 /libtommath
parentff1658cbdd0982b1fe292259ef37bc9abb41a932 (diff)
downloadtcl-d2f4a7137d403a7acf2b9cffe545c8350245ae54.zip
tcl-d2f4a7137d403a7acf2b9cffe545c8350245ae54.tar.gz
tcl-d2f4a7137d403a7acf2b9cffe545c8350245ae54.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;
}