diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-10-03 20:13:37 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-10-03 20:13:37 (GMT) |
commit | 8504d085b7e5ae7dd75ad83fef5e79669d297fc4 (patch) | |
tree | be2a450f9c054b74f43d872b8931b095e726fd0a /Objects | |
parent | b4d286d04ea8941a22a0521b0bfa78db35ed11cf (diff) | |
download | cpython-8504d085b7e5ae7dd75ad83fef5e79669d297fc4.zip cpython-8504d085b7e5ae7dd75ad83fef5e79669d297fc4.tar.gz cpython-8504d085b7e5ae7dd75ad83fef5e79669d297fc4.tar.bz2 |
Use size_t instead of int for a PyMem_MALLOC argument; silences a gcc 'comparison always false' warning.
Diffstat (limited to 'Objects')
-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) { |