public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
From: Aldy Hernandez <aldyh@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc/devel/ranger] libstdc++: Fix regression in libstdc++-prettyprinters/cxx20.cc
Date: Wed, 17 Jun 2020 18:56:25 +0000 (GMT)	[thread overview]
Message-ID: <20200617185625.1AD893954407@sourceware.org> (raw)

https://gcc.gnu.org/g:4540ef781bcefffe779a8b31950ea737733f06a4

commit 4540ef781bcefffe779a8b31950ea737733f06a4
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Feb 17 13:20:57 2020 +0000

    libstdc++: Fix regression in libstdc++-prettyprinters/cxx20.cc
    
            * python/libstdcxx/v6/printers.py (StdCmpCatPrinter.to_string): Update
            value for partial_ordering::unordered.

Diff:
---
 libstdc++-v3/ChangeLog                       | 3 +++
 libstdc++-v3/python/libstdcxx/v6/printers.py | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index c9660084179..9ae1e112aa8 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,8 @@
 2020-02-17  Jonathan Wakely  <jwakely@redhat.com>
 
+	* python/libstdcxx/v6/printers.py (StdCmpCatPrinter.to_string): Update
+	value for partial_ordering::unordered.
+
 	* include/bits/iterator_concepts.h (indirectly_copyable_storable): Add
 	const-qualified expression variations.
 	* include/std/concepts (copyable): Likewise.
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index 7f69b0be9f1..e4da8dfe5b6 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -1435,7 +1435,7 @@ class StdCmpCatPrinter:
         if self.typename == 'strong_ordering' and self.val == 0:
             name = 'equal'
         else:
-            names = {-127:'unordered', -1:'less', 0:'equivalent', 1:'greater'}
+            names = {2:'unordered', -1:'less', 0:'equivalent', 1:'greater'}
             name = names[int(self.val)]
         return 'std::{}::{}'.format(self.typename, name)


                 reply	other threads:[~2020-06-17 18:56 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=20200617185625.1AD893954407@sourceware.org \
    --to=aldyh@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@gcc.gnu.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).