aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libstdc++-v3/python/libstdcxx/v6/printers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index 17c33c1..d70c8d5 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -611,9 +611,9 @@ class StdTuplePrinter:
# the value "as is".
fields = impl.type.fields ()
if len (fields) < 1 or fields[0].name != "_M_head_impl":
- return ('[%d]' % self.count, impl)
+ return ('[%d]' % (self.count - 1), impl)
else:
- return ('[%d]' % self.count, impl['_M_head_impl'])
+ return ('[%d]' % (self.count - 1), impl['_M_head_impl'])
def __init__ (self, typename, val):
self.typename = strip_versioned_namespace(typename)