summaryrefslogtreecommitdiff
path: root/idea.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2010-06-18 00:51:12 +0000
committerweidai <weidai11@users.noreply.github.com>2010-06-18 00:51:12 +0000
commit5a9739c92223101c2b7073e051397e8fa51ef071 (patch)
treee30885d79424f86b8099213fe53efebc19a55e3d /idea.h
parent1fb6fa4fc80931e0d85143af67e16d814f8991a9 (diff)
downloadcryptopp-git-5a9739c92223101c2b7073e051397e8fa51ef071.tar.gz
add "volatile" to prevent compiler optimizing away code
Diffstat (limited to 'idea.h')
-rw-r--r--idea.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/idea.h b/idea.h
index ce026a13..2ab5713a 100644
--- a/idea.h
+++ b/idea.h
@@ -43,7 +43,7 @@ private:
static inline void LookupMUL(word &a, word b);
void LookupKeyLogs();
static void BuildLogTables();
- static bool tablesBuilt;
+ static volatile bool tablesBuilt;
static word16 log[0x10000], antilog[0x10000];
#endif
};