File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 88#include < stdlib.h>
99#include < stdio.h>
1010#include < string.h>
11+ #include < atomic>
1112
1213#ifdef _WIN32
1314#pragma warning (disable:4996)
@@ -59,7 +60,7 @@ typedef struct raw_event {
5960
6061static raw_event_t *event_buffer;
6162static raw_event_t *flush_buffer;
62- static volatile int event_count;
63+ static std::atomic_int event_count;
6364static int is_tracing = FALSE ;
6465static int is_flushing = FALSE ;
6566static int events_in_progress = 0 ;
Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ TEST(
354354 BehaviorTreeFactory factory;
355355
356356 factory.registerBehaviorTreeFromText (xmlA);
357- EXPECT_ANY_THROW (factory.createTree (" Wrong Name" ));
357+ EXPECT_ANY_THROW (auto tree = factory.createTree (" Wrong Name" ));
358358}
359359
360360TEST (BehaviorTreeReload, ReloadSameTree)
You can’t perform that action at this time.
0 commit comments