Skip to content

Commit 2ac94d0

Browse files
committed
Fix memory_order syntax
1 parent 0f8b396 commit 2ac94d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clickhouse/types/types.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ uint64_t Type::GetTypeUniqueId() const {
161161
// 1. going to be the same
162162
// 2. going to be stored atomically
163163

164-
if (type_unique_id_.load(std::memory_order::memory_order_relaxed) == 0) {
164+
if (type_unique_id_.load(std::memory_order_relaxed) == 0) {
165165
const auto name = GetName();
166-
type_unique_id_.store(CityHash64WithSeed(name.c_str(), name.size(), code_), std::memory_order::memory_order_relaxed);
166+
type_unique_id_.store(CityHash64WithSeed(name.c_str(), name.size(), code_), std::memory_order_relaxed);
167167
}
168168

169169
return type_unique_id_;

0 commit comments

Comments
 (0)