From ca27c575d3286ac3046f07b234c5ed8aaa791122 Mon Sep 17 00:00:00 2001 From: Darda Date: Mon, 22 Aug 2022 09:48:44 +0300 Subject: [PATCH] Set atomic counter to 0 when initialized --- teller.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teller.cc b/teller.cc index 4b7b9a5..aa580c7 100644 --- a/teller.cc +++ b/teller.cc @@ -23,7 +23,7 @@ int main() cerr<<"Error opening audio: "< counter; + std::atomic counter = 0; auto player = [&]() { vector data; int ourcounter=0;