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 --- idea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'idea.cpp') diff --git a/idea.cpp b/idea.cpp index b0768fa..bbbdbac 100644 --- a/idea.cpp +++ b/idea.cpp @@ -30,7 +30,7 @@ CRYPTOPP_COMPILE_ASSERT(sizeof(IDEA::Word) >= 2); } #ifdef IDEA_LARGECACHE -bool IDEA::Base::tablesBuilt = false; +volatile bool IDEA::Base::tablesBuilt = false; word16 IDEA::Base::log[0x10000]; word16 IDEA::Base::antilog[0x10000]; -- cgit v1.2.1