summaryrefslogtreecommitdiff
path: root/gost.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 /gost.h
parent1fb6fa4fc80931e0d85143af67e16d814f8991a9 (diff)
downloadcryptopp-git-5a9739c92223101c2b7073e051397e8fa51ef071.tar.gz
add "volatile" to prevent compiler optimizing away code
Diffstat (limited to 'gost.h')
-rw-r--r--gost.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gost.h b/gost.h
index 044c18d9..e6fe4693 100644
--- a/gost.h
+++ b/gost.h
@@ -27,7 +27,7 @@ class GOST : public GOST_Info, public BlockCipherDocumentation
static void PrecalculateSTable();
static const byte sBox[8][16];
- static bool sTableCalculated;
+ static volatile bool sTableCalculated;
static word32 sTable[4][256];
FixedSizeSecBlock<word32, 8> key;