From b85052384c3bfa9bd340aafda3b5c103abcdddfa Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Mon, 31 Mar 2008 04:52:32 +0000 Subject: [PATCH] Remove a pointless cast which drops const and causes a warning with certain GCC warning flag settings. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10329 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/perl5/perlrun.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/perl5/perlrun.swg b/Lib/perl5/perlrun.swg index f619ac0a9..54d098d9b 100644 --- a/Lib/perl5/perlrun.swg +++ b/Lib/perl5/perlrun.swg @@ -207,7 +207,7 @@ SWIG_Perl_TypeProxyName(const swig_type_info *type) { SWIGRUNTIME swig_cast_info * SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) { - SWIG_TypeCheck_Template(( (!iter->type->clientdata && (strcmp((char*)iter->type->name, c) == 0)) + SWIG_TypeCheck_Template(( (!iter->type->clientdata && (strcmp(iter->type->name, c) == 0)) || (iter->type->clientdata && (strcmp((char*)iter->type->clientdata, c) == 0))), ty); }