diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2010-06-18 00:51:12 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2010-06-18 00:51:12 +0000 |
commit | 5ed048bd178f6a9789c90e65f406e308b3bb35cc (patch) | |
tree | e30885d79424f86b8099213fe53efebc19a55e3d /hex.cpp | |
parent | 277e95a2d6ffbc636cb2df66d53b7f50e94bfd24 (diff) | |
download | cryptopp-5ed048bd178f6a9789c90e65f406e308b3bb35cc.tar.gz |
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
Diffstat (limited to 'hex.cpp')
-rw-r--r-- | hex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -28,7 +28,7 @@ void HexDecoder::IsolatedInitialize(const NameValuePairs ¶meters) const int *HexDecoder::GetDefaultDecodingLookupArray() { - static bool s_initialized = false; + static volatile bool s_initialized = false; static int s_array[256]; if (!s_initialized) |