public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] libstdc++: Fix regression in libstdc++-prettyprinters/cxx20.cc
@ 2020-02-17 13:22 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2020-02-17 13:22 UTC (permalink / raw)
  To: libstdc++, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 168 bytes --]

	* python/libstdcxx/v6/printers.py (StdCmpCatPrinter.to_string): Update
	value for partial_ordering::unordered.

Tested powerpc64le-linux, committed to master.



[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1020 bytes --]

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 --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)
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-17 13:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-17 13:22 [committed] libstdc++: Fix regression in libstdc++-prettyprinters/cxx20.cc Jonathan Wakely

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