summaryrefslogtreecommitdiff
path: root/hex.cpp
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 /hex.cpp
parent1fb6fa4fc80931e0d85143af67e16d814f8991a9 (diff)
downloadcryptopp-git-5a9739c92223101c2b7073e051397e8fa51ef071.tar.gz
add "volatile" to prevent compiler optimizing away code
Diffstat (limited to 'hex.cpp')
-rw-r--r--hex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hex.cpp b/hex.cpp
index b6484a5d..5731df55 100644
--- a/hex.cpp
+++ b/hex.cpp
@@ -28,7 +28,7 @@ void HexDecoder::IsolatedInitialize(const NameValuePairs &parameters)
const int *HexDecoder::GetDefaultDecodingLookupArray()
{
- static bool s_initialized = false;
+ static volatile bool s_initialized = false;
static int s_array[256];
if (!s_initialized)