Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-05-20 23:30:11 +0300
committerAdam Langley <agl@google.com>2015-05-20 23:30:11 +0300
commit0d1d0d5c1ffcf0a36dfc0f3184c76b38858a8874 (patch)
tree819dba68ba80b5d53c0874a6d37e72dca9e511a9 /crypto/refcount_c11.c
parent7b348dc1d8af77d4bc186c0f39d7f4c0901d26d4 (diff)
Try again to only test __STDC_VERSION__ when defined.
6e1f6456 tried to do this, but MSVC doesn't short-circuit #if statements. So this change tries having the test be in a different #if. Change-Id: Id0074770c166a2b7cd9ba2c8cd06245a68b77af8
Diffstat (limited to 'crypto/refcount_c11.c')
-rw-r--r--crypto/refcount_c11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/refcount_c11.c b/crypto/refcount_c11.c
index a77473f7..724db351 100644
--- a/crypto/refcount_c11.c
+++ b/crypto/refcount_c11.c
@@ -35,7 +35,8 @@ static_assert((CRYPTO_refcount_t)-1 == CRYPTO_REFCOUNT_MAX,
"CRYPTO_REFCOUNT_MAX is incorrect");
void CRYPTO_refcount_inc(CRYPTO_refcount_t *count) {
- uint32_t expected = atomic_load(count);
+ uint32_t expected =
+ atomic_load(static_cast<_Atomic CRYPTO_refcount_t>(count));
while (expected != CRYPTO_REFCOUNT_MAX) {
uint32_t new_value = expected + 1;