diff options
-rw-r--r-- | Objects/capsule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/capsule.c b/Objects/capsule.c index 3d2d626..e25af6c 100644 --- a/Objects/capsule.c +++ b/Objects/capsule.c @@ -197,7 +197,7 @@ PyCapsule_Import(const char *name, int no_block) PyObject *object = NULL; void *return_value = NULL; char *trace; - int name_length = (strlen(name) + 1) * sizeof(char); + size_t name_length = (strlen(name) + 1) * sizeof(char); char *name_dup = (char *)PyMem_MALLOC(name_length); if (!name_dup) { |