mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-36594: Fix incorrect use of %p in format strings (GH-12769)
In addition, fix some other minor violations of C99.
This commit is contained in:
parent
ae2c32f32b
commit
1a2252ed39
11 changed files with 26 additions and 24 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue