From 5ed048bd178f6a9789c90e65f406e308b3bb35cc Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 18 Jun 2010 00:51:12 +0000 Subject: 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 --- gost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gost.cpp') diff --git a/gost.cpp b/gost.cpp index 1775238..bbd8297 100644 --- a/gost.cpp +++ b/gost.cpp @@ -27,7 +27,7 @@ const byte GOST::Base::sBox[8][16]={ {14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7 }}; */ -bool GOST::Base::sTableCalculated = false; +volatile bool GOST::Base::sTableCalculated = false; word32 GOST::Base::sTable[4][256]; void GOST::Base::UncheckedSetKey(const byte *userKey, unsigned int length, const NameValuePairs &) -- cgit v1.2.1