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 /base32.cpp | |
| parent | 1fb6fa4fc80931e0d85143af67e16d814f8991a9 (diff) | |
| download | cryptopp-git-5a9739c92223101c2b7073e051397e8fa51ef071.tar.gz | |
add "volatile" to prevent compiler optimizing away code
Diffstat (limited to 'base32.cpp')
| -rw-r--r-- | base32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -25,7 +25,7 @@ void Base32Decoder::IsolatedInitialize(const NameValuePairs ¶meters) const int *Base32Decoder::GetDefaultDecodingLookupArray() { - static bool s_initialized = false; + static volatile bool s_initialized = false; static int s_array[256]; if (!s_initialized) |
