summaryrefslogtreecommitdiff
path: root/gf2n.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-25 00:15:52 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-25 00:15:52 +0000
commit58d9f812c149943cc18bd5b926b22fcc7b9b8b27 (patch)
tree9227398b87250aa1eca81b0853a967fe9d003103 /gf2n.cpp
parent60ae2279fbb3b8082a7963ce73dcd2b6b2d4a50e (diff)
downloadcryptopp-58d9f812c149943cc18bd5b926b22fcc7b9b8b27.tar.gz
fix bugs in 64-bit CPU support
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@112 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'gf2n.cpp')
-rw-r--r--gf2n.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gf2n.cpp b/gf2n.cpp
index b7b4bf9..93d5ede 100644
--- a/gf2n.cpp
+++ b/gf2n.cpp
@@ -143,7 +143,7 @@ void PolynomialMod2::Decode(BufferedTransformation &bt, unsigned int inputLen)
{
byte b;
bt.Get(b);
- reg[(i-1)/WORD_SIZE] |= b << ((i-1)%WORD_SIZE)*8;
+ reg[(i-1)/WORD_SIZE] |= word(b) << ((i-1)%WORD_SIZE)*8;
}
}