gcc-2.96 warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8696 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
af6a3c5df6
commit
72f6688a6b
2 changed files with 4 additions and 4 deletions
|
|
@ -1177,8 +1177,8 @@ int yylex(void) {
|
|||
if ((c == '<') && !start_template) {
|
||||
int fcount = 1;
|
||||
char c = nextchar();
|
||||
while (isspace(c)) {c = nextchar(); ++fcount;}
|
||||
if (isalpha(c)|| c == ':') {
|
||||
while (isspace((int)c)) {c = nextchar(); ++fcount;}
|
||||
if (isalpha((int)c)|| c == ':') {
|
||||
start_template = count;
|
||||
}
|
||||
retract(fcount);
|
||||
|
|
@ -1214,7 +1214,7 @@ int yylex(void) {
|
|||
int nlen = len - tlen;
|
||||
if (nlen) {
|
||||
String *ns = 0;
|
||||
while (isspace(end[--nlen]));
|
||||
while (isspace((int)end[--nlen]));
|
||||
ns = NewStringWithSize(s, nlen + 1);
|
||||
retract(count - start_template);
|
||||
Delete(s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue