[Patches] fix simple 64-bit warnings/errors in signalmodule.c and bufferobject.c
Fred L. Drake, Jr.
fdrake@beopen.com
Mon, 5 Jun 2000 22:58:25 -0400 (EDT)
Trent Mick writes:
> ..\Objects\bufferobject.c(169) : warning #180: argument is incompatible with formal parameter
> return _PyBuffer_FromMemory(NULL, ptr, size, 1);
> ^
>
> Adding the cast to a PyObject* gets rid of the warning. Perhaps I am
> overreacting to an innocuous warning?
I think the cast is appropriate simply because of this. I seem to
recall seeing some compilers defining NULL as ((void *) 0), so this
doesn't seem completely unreasonable.
-Fred
--
Fred L. Drake, Jr. <fdrake at beopen.com>
BeOpen PythonLabs Team Member