From 0af2a4c6134054625cc07b38bed96acd7d35f590 Mon Sep 17 00:00:00 2001 From: olpc user Date: Thu, 12 Dec 2019 07:35:10 -0800 Subject: comply with pedantic warning --- starts/meaning-vm/habit-starts/rhythm.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/starts/meaning-vm/habit-starts/rhythm.cpp b/starts/meaning-vm/habit-starts/rhythm.cpp index 0877250..c476006 100644 --- a/starts/meaning-vm/habit-starts/rhythm.cpp +++ b/starts/meaning-vm/habit-starts/rhythm.cpp @@ -68,6 +68,9 @@ int main() "and a three!", "and a four, love" }; + std::cout << beats[b] << std::endl; + b = (b + 1) % (sizeof(beats) / sizeof(*beats)); + }); #if 0 char const * beats[] = { // child <- spawns beauty, creativity, humanity, heart @@ -114,9 +117,6 @@ int main() // says that. } #endif - std::cout << beats[b] << std::endl; - b = (b + 1) % (sizeof(beats) / sizeof(*beats)); - }); ahabit(wait-habit, (), { usleep(micros); -- cgit v1.2.3