MINGW-packages/mingw-w64-python3.13/0125-Fix-format-warning.patch
Christoph Reiter 04c9ed3700 python3.13: Add 3.13.7
* add libb2 as dep
* remove "-Wl,--large-address-aware", default now via makepkg
* remove 2to3 logic, no longer in Python
2025-09-08 22:02:30 +02:00

23 lines
769 B
Diff

From fb61aa56f1c786493873cc097835bfe77a325823 Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Thu, 28 Aug 2025 22:51:52 +0300
Subject: [PATCH 125/N] Fix format warning
---
Modules/_ctypes/_ctypes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index ff4ec57..cb306cb 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -5008,7 +5008,7 @@ PyCArrayType_from_ctype(ctypes_state *st, PyObject *itemtype, Py_ssize_t length)
return NULL;
}
#ifdef MS_WIN64
- sprintf(name, "%.200s_Array_%Id",
+ sprintf(name, "%.200s_Array_%Illd",
((PyTypeObject *)itemtype)->tp_name, length);
#else
sprintf(name, "%.200s_Array_%ld",