gcc-2.96 warning fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8696 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-02-03 22:13:07 +00:00
commit e3186ff0eb
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -840,7 +840,7 @@ expand_macro(String *name, List *args)
a = strstr(s,name);
while (a) {
char ca = a[namelen+1];
if (!isidchar(ca)) {
if (!isidchar((int)ca)) {
/* Matched the entire vararg name, not just a prefix */
t = a-1;
if (*t == '\002') {