Mercurial > cpython-lru_cache-weakref
diff Mac/Modules/win/_Winmodule.c @ 19723:2a9bbdbefbb1 legacy-trunk
Shut up many more gcc warnings.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Wed, 05 Sep 2001 10:31:52 +0000 |
| parents | 6eafc4a6359a |
| children | 19817a4fa2b6 |
line wrap: on
line diff
--- a/Mac/Modules/win/_Winmodule.c Wed Sep 05 10:27:53 2001 +0000 +++ b/Mac/Modules/win/_Winmodule.c Wed Sep 05 10:31:52 2001 +0000 @@ -5,8 +5,12 @@ +#ifdef _WIN32 +#include "pywintoolbox.h" +#else #include "macglue.h" #include "pymactoolbox.h" +#endif /* Macro to test whether a weak-loaded CFM function exists */ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ @@ -2125,7 +2129,7 @@ static PyObject * WinObj_repr(WindowObject *self) { char buf[100]; - sprintf(buf, "<Window object at 0x%08.8x for 0x%08.8x>", self, self->ob_itself); + sprintf(buf, "<Window object at 0x%8.8x for 0x%8.8x>", (unsigned)self, (unsigned)self->ob_itself); return PyString_FromString(buf); } @@ -2643,7 +2647,8 @@ if ( !PyArg_ParseTuple(_args, "i", &ptr) ) return NULL; - return WinObj_WhichWindow((WindowPtr)ptr); + _res = WinObj_WhichWindow((WindowPtr)ptr); + return _res; }
