[Python-checkins] r46645 - python/trunk/Modules/_struct.c

tim.peters python-checkins at python.org
Sun Jun 4 17:49:41 CEST 2006


Author: tim.peters
Date: Sun Jun 4 17:49:07 2006
New Revision: 46645
Modified:
 python/trunk/Modules/_struct.c
Log:
s_methods[]: Stop compiler warnings by casting
s_unpack_from to PyCFunction.
Modified: python/trunk/Modules/_struct.c
==============================================================================
--- python/trunk/Modules/_struct.c	(original)
+++ python/trunk/Modules/_struct.c	Sun Jun 4 17:49:07 2006
@@ -1669,7 +1669,8 @@
 	{"pack",	s_pack,		METH_VARARGS, s_pack__doc__},
 	{"pack_into",	s_pack_into,	METH_VARARGS, s_pack_into__doc__},
 	{"unpack",	s_unpack, METH_O, s_unpack__doc__},
-	{"unpack_from",	s_unpack_from,	METH_KEYWORDS, s_unpack_from__doc__},
+	{"unpack_from",	(PyCFunction)s_unpack_from, METH_KEYWORDS,
+			s_unpack_from__doc__},
 	{NULL,	 NULL}		/* sentinel */
 };
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /