A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/protocolbuffers/protobuf/commit/3e935cfe8827510a30f518178cfa9b178a7d1232 below:

Cast GetCachedTID() to unsigned to prevent left-shifting a negative n… · protocolbuffers/protobuf@3e935cf · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed Original file line number Diff line number Diff line change

@@ -110,7 +110,7 @@ void RecordAllocateSlow(ThreadSafeArenaStats* info, size_t used,

110 110

if (info->max_block_size.load(std::memory_order_relaxed) < allocated) {

111 111

info->max_block_size.store(allocated, std::memory_order_relaxed);

112 112

}

113 -

const uint64_t tid = 1ULL << (GetCachedTID() % 63);

113 +

const uint64_t tid = 1ULL << (static_cast<uint64_t>(GetCachedTID()) % 63);

114 114

info->thread_ids.fetch_or(tid, std::memory_order_relaxed);

115 115

}

116 116

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4