public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Tom de Vries <vries@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] [gdbsupport] Fix type of parallel_for_each_debug
Date: Thu, 21 Jul 2022 11:34:18 +0000 (GMT)	[thread overview]
Message-ID: <20220721113418.04F24385702D@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9b89bf16c39365ac68929ca5d8484ef732e0ac4f

commit 9b89bf16c39365ac68929ca5d8484ef732e0ac4f
Author: Tom de Vries <tdevries@suse.de>
Date:   Thu Jul 21 13:34:14 2022 +0200

    [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.

Diff:
---
 gdbsupport/parallel-for.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdbsupport/parallel-for.h b/gdbsupport/parallel-for.h
index bf40f125f0f..0037ee23ff3 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;


                 reply	other threads:[~2022-07-21 11:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220721113418.04F24385702D@sourceware.org \
    --to=vries@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).