gcc warning fix

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8779 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-02-10 23:30:06 +00:00
commit dc6a1a432e

View file

@ -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;
}