Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/libbn Make the mp_digit ...
details: https://anonhg.NetBSD.org/src/rev/200b92a302f4
branches: trunk
changeset: 783068:200b92a302f4
user: agc <agc%NetBSD.org@localhost>
date: Mon Dec 03 18:02:22 2012 +0000
description:
Make the mp_digit type an "unsigned long" so that it works for ILP32 and
LP64.
Fixes problems showing up on regression tests on i386 (which work fine on
amd64) i.e. turn:
t_netpgpverify (1/1): 2 test cases
netpgpverify_dsa: [0.309746s] Failed: atf-check failed; see the output of the test for details
netpgpverify_rsa: [0.183148s] Passed.
[0.495102s]
Failed test cases:
t_netpgpverify:netpgpverify_dsa
Summary for 1 test programs:
1 passed test cases.
1 failed test cases.
0 expected failed test cases.
0 skipped test cases.
into:
t_netpgpverify (1/1): 2 test cases
netpgpverify_dsa: [0.236076s] Passed.
netpgpverify_rsa: [0.154680s] Passed.
[0.393034s]
Summary for 1 test programs:
2 passed test cases.
0 failed test cases.
0 expected failed test cases.
0 skipped test cases.
diffstat:
crypto/external/bsd/netpgp/dist/src/libbn/bn.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 04a1b47ce5b1 -r 200b92a302f4 crypto/external/bsd/netpgp/dist/src/libbn/bn.h
--- a/crypto/external/bsd/netpgp/dist/src/libbn/bn.h Mon Dec 03 13:53:28 2012 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/libbn/bn.h Mon Dec 03 18:02:22 2012 +0000
@@ -44,7 +44,8 @@
__BEGIN_DECLS
-typedef uint64_t mp_digit;
+/* should be 32bit on ILP32, 64bit on LP64 */
+typedef unsigned long mp_digit;
typedef uint64_t mp_word;
/* multi-precision integer */
Home |
Main Index |
Thread Index |
Old Index