Skip to content

Commit 7bc3926

Browse files
committed
Try fix atomic on osx
1 parent 86cd513 commit 7bc3926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ int main(int argc, char **argv) {
503503

504504
std::cout << j.dump(2) << std::endl;
505505

506-
std::atomic<int> state = IDLE;
506+
std::atomic<int> state = { IDLE };
507507

508508
while (1) {
509509

0 commit comments

Comments
 (0)