File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -288,8 +288,9 @@ class PercettoDataSource
288288 std::end (s_percetto.categories [i]->ext ->strings ),
289289 std::begin (tags));
290290 if (IsCategoryEnabled (s_percetto.categories [i]->ext ->name , tags, config)) {
291- std::atomic_fetch_or (&s_percetto.categories [i]->sessions ,
292- 1ul << args.internal_instance_index );
291+ std::atomic_fetch_or<std::uint_fast32_t >(
292+ &s_percetto.categories [i]->sessions ,
293+ 1ul << args.internal_instance_index );
293294 }
294295 }
295296 UpdateGroupCategories ();
@@ -300,7 +301,8 @@ class PercettoDataSource
300301 void OnStop (const DataSourceBase::StopArgs& args) override {
301302 int count = s_percetto.category_count .load (std::memory_order_acquire);
302303 for (int i = 0 ; i < count; i++) {
303- std::atomic_fetch_and (&s_percetto.categories [i]->sessions ,
304+ std::atomic_fetch_and<std::uint_fast32_t >(
305+ &s_percetto.categories [i]->sessions ,
304306 ~(1ul << args.internal_instance_index ));
305307 }
306308 UpdateGroupCategories ();
You can’t perform that action at this time.
0 commit comments