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/libdigest avoid casts wh...
details: https://anonhg.NetBSD.org/src/rev/9ae70b911480
branches: trunk
changeset: 790731:9ae70b911480
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Oct 19 22:54:44 2013 +0000
description:
avoid casts when the necessary union member is already available.
from apb.
diffstat:
crypto/external/bsd/netpgp/dist/src/libdigest/tiger.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 1dfd045f1095 -r 9ae70b911480 crypto/external/bsd/netpgp/dist/src/libdigest/tiger.c
--- a/crypto/external/bsd/netpgp/dist/src/libdigest/tiger.c Sat Oct 19 22:45:12 2013 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/libdigest/tiger.c Sat Oct 19 22:54:44 2013 +0000
@@ -819,7 +819,7 @@
for (; j < 56; j++) {
u.temp8[j] = 0;
}
- ((uint64_t *)(void *)(&(u.temp8[56])))[0] = ((uint64_t)length) << 3;
+ u.temp64[7] = ((uint64_t)length) << 3;
tiger_compress(u.temp64, ctx->ctx);
}
Home |
Main Index |
Thread Index |
Old Index