aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-07-21 13:34:14 +0200
committerTom de Vries <tdevries@suse.de>2022-07-21 13:34:14 +0200
commit9b89bf16c39365ac68929ca5d8484ef732e0ac4f (patch)
tree92f849ea49ccc50106867d222343a098dd0c185c
parent2fe9a3c41faa71b1f2bde40e818187491a5a9925 (diff)
downloadgdb-9b89bf16c39365ac68929ca5d8484ef732e0ac4f.zip
gdb-9b89bf16c39365ac68929ca5d8484ef732e0ac4f.tar.gz
gdb-9b89bf16c39365ac68929ca5d8484ef732e0ac4f.tar.bz2
[gdbsupport] Fix type of parallel_for_each_debug
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.
-rw-r--r--gdbsupport/parallel-for.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbsupport/parallel-for.h b/gdbsupport/parallel-for.h
index bf40f12..0037ee2 100644
--- a/gdbsupport/parallel-for.h
+++ b/gdbsupport/parallel-for.h
@@ -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;