[Python-Dev] CVS: python/dist/src/Modules posixmodule.c,2.143,2.144

Fredrik Lundh fredrik@pythonware.com
Mon, 10 Jul 2000 12:48:22 +0200


greg wrote:

> --- posixmodule.c 2000/07/09 13:10:40 2.144
> --- 1541,1548 ----
>   return posix_error();
>   else
> ! #if SIZEOF_LONG == SIZEOF_VOID_P
> ! return Py_BuildValue("l", (long) spawnval);
>   #else
> ! return Py_BuildValue("L", (LONG_LONG) spawnval);
>   #endif
>   }

> hmm. should that be PyLong_FromVoidPtr() ? It will return the appropriate
> object type based on the size of a void*.

I have no idea; I just fixed the typo...

the spawn return value is an int according to the docs and my
copy of the header files, so I'll leave it to trent to sort this one
out.  (it's probably a win64 oddity, and he's the only one here
with a win64 box).

cheers /F