more fixes for security and warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7009 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fbdf160f4a
commit
5b74ab97a7
10 changed files with 44 additions and 34 deletions
|
|
@ -157,9 +157,8 @@ SWIG_TypeCompare(const char *nb, const char *tb) {
|
|||
|
||||
/* think of this as a c++ template<> or a scheme macro */
|
||||
#define SWIG_TypeCheck_Template(comparison, ty) \
|
||||
do { \
|
||||
if (ty) { \
|
||||
swig_cast_info *iter; \
|
||||
if (!ty) return 0; \
|
||||
iter = ty->cast; \
|
||||
while (iter) { \
|
||||
if (comparison) { \
|
||||
|
|
@ -178,7 +177,7 @@ SWIG_TypeCompare(const char *nb, const char *tb) {
|
|||
} \
|
||||
iter = iter->next; \
|
||||
} \
|
||||
} while(0); \
|
||||
} \
|
||||
return 0
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue