From 06835c7b3db3bb45c6eaffb3baa17bc4acd8df0b Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 2 Jan 2006 17:45:11 +0000 Subject: [PATCH] avoid label warning git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8191 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/python.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 54238de8d..b5a653011 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -1348,9 +1348,10 @@ public: if (!fastunpack) { Wrapper_add_local(f,"ii","int ii"); + Printf(f->code,"if (!PyTuple_Check(args)) SWIG_fail;\n"); Printf(f->code,"argc = PyObject_Length(args);\n"); Printf(f->code,"for (ii = 0; (ii < argc) && (ii < %d); ii++) {\n",maxargs); - Printf(f->code,"argv[ii] = PyTuple_GetItem(args,ii);\n"); + Printf(f->code,"argv[ii] = PyTuple_GET_ITEM(args,ii);\n"); Printf(f->code,"}\n"); } else { String *iname = Getattr(n,"sym:name");