summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:57:33 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:57:33 +0000
commit70949daf17f9e63a4f7d40dcc07bec6755025c0b (patch)
tree046799af0164bbdc0a1d65b566be2dbd49554322 /apt-pkg
parent2ed9b455cb103da95fe0c6cb81040be2b340c1bf (diff)
fixed an alignment bug
Author: tausq Date: 2001-04-25 07:30:13 GMT fixed an alignment bug
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/sha1.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/apt-pkg/contrib/sha1.h b/apt-pkg/contrib/sha1.h
index a6fe2d94a..89c8a1ec0 100644
--- a/apt-pkg/contrib/sha1.h
+++ b/apt-pkg/contrib/sha1.h
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: sha1.h,v 1.1 2001/03/06 05:03:49 jgg Exp $
+// $Id: sha1.h,v 1.2 2001/04/25 07:30:13 tausq Exp $
/* ######################################################################
SHA1SumValue - Storage for a SHA-1 hash.
@@ -45,9 +45,10 @@ class SHA1SumValue
class SHA1Summation
{
- unsigned char Buffer[64];
- unsigned char State[5*4];
- unsigned char Count[2*4];
+ /* assumes 64-bit alignment just in case */
+ unsigned char Buffer[64] __attribute__((aligned(8)));
+ unsigned char State[5*4] __attribute__((aligned(8)));
+ unsigned char Count[2*4] __attribute__((aligned(8)));
bool Done;
public: