diff options
author | vvvv <[email protected]> | 2022-03-30 12:05:53 +0300 |
---|---|---|
committer | vvvv <[email protected]> | 2022-03-30 12:05:53 +0300 |
commit | b8e180adf4a659f46cacb10cd67b96e38ef660a1 (patch) | |
tree | f46885b3f8f7a0be8f2d48c52287ed182c5345d6 | |
parent | fe418607ea4e0ea0eb6f35a3a8bfee1a6ab76753 (diff) |
YQL-13710 [msvc] fix compile error
ref:f00e4f68af198485fe9e181f301efd1262f5d016
-rw-r--r-- | ydb/library/yql/parser/pg_wrapper/postgresql/src/include/port/atomics/generic-msvc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ydb/library/yql/parser/pg_wrapper/postgresql/src/include/port/atomics/generic-msvc.h b/ydb/library/yql/parser/pg_wrapper/postgresql/src/include/port/atomics/generic-msvc.h index f535b4567b5..8823b8589e2 100644 --- a/ydb/library/yql/parser/pg_wrapper/postgresql/src/include/port/atomics/generic-msvc.h +++ b/ydb/library/yql/parser/pg_wrapper/postgresql/src/include/port/atomics/generic-msvc.h @@ -80,7 +80,7 @@ pg_atomic_compare_exchange_u64_impl(volatile pg_atomic_uint64 *ptr, { bool ret; uint64 current; - current = _InterlockedCompareExchange64(&ptr->value, newval, *expected); + current = _InterlockedCompareExchange64((volatile __int64 *)&ptr->value, newval, *expected); ret = current == *expected; *expected = current; return ret; @@ -94,7 +94,7 @@ pg_atomic_compare_exchange_u64_impl(volatile pg_atomic_uint64 *ptr, static inline uint64 pg_atomic_fetch_add_u64_impl(volatile pg_atomic_uint64 *ptr, int64 add_) { - return _InterlockedExchangeAdd64(&ptr->value, add_); + return _InterlockedExchangeAdd64((volatile __int64 *)&ptr->value, add_); } #endif /* _WIN64 */ |