Files
MINGW-packages/mingw-w64-python/0082-Fix-format-warning.patch
2026-01-07 22:17:09 +01:00

23 lines
768 B
Diff

From 38c84773a5e71ea245b5261de7f3b51928650013 Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Thu, 28 Aug 2025 22:51:52 +0300
Subject: [PATCH 082/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 bb1846b..f229d73 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -5018,7 +5018,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_%lld",
((PyTypeObject *)itemtype)->tp_name, length);
#else
sprintf(name, "%.200s_Array_%ld",