From 8b91edadc06dcb0d391a65d1ecdf07dcb429df1b Mon Sep 17 00:00:00 2001
From: sth <sth.dev@tejp.de>
Date: Sun, 10 Mar 2019 11:29:14 +0100
Subject: bpo-36251: Fix format strings used in match_repr() and
 stdprinter_repr(). (GH-12252)

---
 Modules/_sre.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'Modules/_sre.c')

diff --git a/Modules/_sre.c b/Modules/_sre.c
index 5cea7562f2..014cc546e3 100644
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -2306,7 +2306,7 @@ match_repr(MatchObject *self)
     if (group0 == NULL)
         return NULL;
     result = PyUnicode_FromFormat(
-            "<%s object; span=(%d, %d), match=%.50R>",
+            "<%s object; span=(%zd, %zd), match=%.50R>",
             Py_TYPE(self)->tp_name,
             self->mark[0], self->mark[1], group0);
     Py_DECREF(group0);
-- 
cgit v1.2.1