diff options
author | Zackery Spytz <zspytz@gmail.com> | 2019-05-06 16:56:51 (GMT) |
---|---|---|
committer | Brett Cannon <54418+brettcannon@users.noreply.github.com> | 2019-05-06 16:56:50 (GMT) |
commit | 1a2252ed39bc1b71cdaa935d7726d82909af93ab (patch) | |
tree | 7a816ef20b914628f61cce377a9b245933ff6ec9 /Python/thread_pthread.h | |
parent | ae2c32f32b61f3b141ba4b0b1ad71781d2f9a1a1 (diff) | |
download | cpython-1a2252ed39bc1b71cdaa935d7726d82909af93ab.zip cpython-1a2252ed39bc1b71cdaa935d7726d82909af93ab.tar.gz cpython-1a2252ed39bc1b71cdaa935d7726d82909af93ab.tar.bz2 |
bpo-36594: Fix incorrect use of %p in format strings (GH-12769)
In addition, fix some other minor violations of C99.
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r-- | Python/thread_pthread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index 1f4f36d..4c106d9 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -339,7 +339,7 @@ PyThread_allocate_lock(void) } } - dprintf(("PyThread_allocate_lock() -> %p\n", lock)); + dprintf(("PyThread_allocate_lock() -> %p\n", (void *)lock)); return (PyThread_type_lock)lock; } @@ -521,7 +521,7 @@ PyThread_allocate_lock(void) } } - dprintf(("PyThread_allocate_lock() -> %p\n", lock)); + dprintf(("PyThread_allocate_lock() -> %p\n", (void *)lock)); return (PyThread_type_lock) lock; } |