[Zope-CVS] CVS: Packages/Spread - spreadmodule.c:1.12
Guido van Rossum
guido@python.org
Thu, 20 Dec 2001 08:41:48 -0500
Update of /cvs-repository/Packages/Spread
In directory cvs.zope.org:/tmp/cvs-serv27350
Modified Files:
spreadmodule.c
Log Message:
Add a cast for the case of passing an int for an int16 argument, to
make VC++ happy.
=== Packages/Spread/spreadmodule.c 1.11 => 1.12 ===
Py_BEGIN_ALLOW_THREADS
- bytes = SP_multicast(self->mbox, svc_type, group, msg_type,
+ bytes = SP_multicast(self->mbox, svc_type, group, (int16)msg_type,
msg_len, msg);
Py_END_ALLOW_THREADS
if (bytes < 0)