libstdc++: Fix regression in libstdc++-prettyprinters/cxx20.cc
authorJonathan Wakely <jwakely@redhat.com>
Mon, 17 Feb 2020 13:20:57 +0000 (13:20 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 17 Feb 2020 13:20:57 +0000 (13:20 +0000)
* python/libstdcxx/v6/printers.py (StdCmpCatPrinter.to_string): Update
value for partial_ordering::unordered.

libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py

index c9660084179bedc9ece911c7cca175067e1972c3..9ae1e112aa807e4c09e7f37a01b0ff3780a67734 100644 (file)
@@ -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.
index 7f69b0be9f1448a97792c00fcdfe0da093b7a282..e4da8dfe5b6348b2db15b26eeb0c6c407eee04c2 100644 (file)
@@ -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)