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:
committed by
Brett Cannon
parent
ae2c32f32b
commit
1a2252ed39
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user