gcc warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8779 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c9de72f7ce
commit
4271ac67b1
1 changed files with 2 additions and 2 deletions
|
|
@ -2384,8 +2384,8 @@ typemap_directive : TYPEMAP LPAREN typemap_type RPAREN tm_list stringbrace {
|
|||
--len; ++cstr;
|
||||
if (len && cstr[len - 1] == '}') { --len; }
|
||||
/* we now remove the extra spaces */
|
||||
while (len && isspace(cstr[0])) { --len; ++cstr; }
|
||||
while (len && isspace(cstr[len - 1])) { --len; }
|
||||
while (len && isspace((int)cstr[0])) { --len; ++cstr; }
|
||||
while (len && isspace((int)cstr[len - 1])) { --len; }
|
||||
code = NewStringWithSize(cstr, len);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue