mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Keep gcc -Wall happy.
This commit is contained in:
parent
60fca2c90f
commit
a376cc5cc8
27 changed files with 93 additions and 56 deletions
|
@ -1051,7 +1051,7 @@ Tktt_Print (self, fp, flags)
|
|||
{
|
||||
TkttObject *v = (TkttObject *) self;
|
||||
|
||||
fprintf(fp, "<tktimertoken at 0x%x%s>", v,
|
||||
fprintf(fp, "<tktimertoken at 0x%lx%s>", (long)v,
|
||||
v->func == NULL ? ", handler deleted" : "");
|
||||
return 0;
|
||||
}
|
||||
|
@ -1139,6 +1139,7 @@ Tkapp_MainLoop (self, args)
|
|||
quitMainLoop = 0;
|
||||
while (Tk_GetNumMainWindows() > threshold && !quitMainLoop && !errorInCmd)
|
||||
{
|
||||
/* XXX Ought to check for other signals! */
|
||||
if (PyOS_InterruptOccurred ())
|
||||
{
|
||||
PyErr_SetNone (PyExc_KeyboardInterrupt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue