[gdbsupport] Fix type of parallel_for_each_debug
authorTom de Vries <tdevries@suse.de>
Thu, 21 Jul 2022 11:34:14 +0000 (13:34 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 21 Jul 2022 11:34:14 +0000 (13:34 +0200)
When I changed the initialization of parallel_for_each_debug from 0 to false,
I forgot to change the type from int to bool.  Fix this.

Tested by rebuilding on x86_64-linux.

gdbsupport/parallel-for.h

index bf40f125f0f7f16c14ab2371dfa77782e09055eb..0037ee23ff32256b172c4c114e32e5f330eedd99 100644 (file)
@@ -141,7 +141,7 @@ parallel_for_each (unsigned n, RandomIt first, RandomIt last,
 
   /* If enabled, print debug info about how the work is distributed across
      the threads.  */
-  const int parallel_for_each_debug = false;
+  const bool parallel_for_each_debug = false;
 
   size_t n_worker_threads = thread_pool::g_thread_pool->thread_count ();
   size_t n_threads = n_worker_threads;