diff options
author | weidai <weidai11@users.noreply.github.com> | 2010-06-18 00:51:12 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2010-06-18 00:51:12 +0000 |
commit | 5a9739c92223101c2b7073e051397e8fa51ef071 (patch) | |
tree | e30885d79424f86b8099213fe53efebc19a55e3d /idea.cpp | |
parent | 1fb6fa4fc80931e0d85143af67e16d814f8991a9 (diff) | |
download | cryptopp-git-5a9739c92223101c2b7073e051397e8fa51ef071.tar.gz |
add "volatile" to prevent compiler optimizing away code
Diffstat (limited to 'idea.cpp')
-rw-r--r-- | idea.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |