summaryrefslogtreecommitdiff
path: root/gcm.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-06-18 00:51:12 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-06-18 00:51:12 +0000
commit5ed048bd178f6a9789c90e65f406e308b3bb35cc (patch)
treee30885d79424f86b8099213fe53efebc19a55e3d /gcm.cpp
parent277e95a2d6ffbc636cb2df66d53b7f50e94bfd24 (diff)
downloadcryptopp-5ed048bd178f6a9789c90e65f406e308b3bb35cc.tar.gz
add "volatile" to prevent compiler optimizing away code
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@482 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'gcm.cpp')
-rw-r--r--gcm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcm.cpp b/gcm.cpp
index 986aa2a..8367227 100644
--- a/gcm.cpp
+++ b/gcm.cpp
@@ -17,7 +17,7 @@
NAMESPACE_BEGIN(CryptoPP)
word16 GCM_Base::s_reductionTable[256];
-bool GCM_Base::s_reductionTableInitialized = false;
+volatile bool GCM_Base::s_reductionTableInitialized = false;
void GCM_Base::GCTR::IncrementCounterBy256()
{