gjavah.c (print_include): Cast the result of `strlen' to int when comparing against a signed value.

* gjavah.c (print_include): Cast the result of `strlen' to int
        when comparing against a signed value.
        (add_namelet): Likewise.

From-SVN: r26924
This commit is contained in:
Kaveh R. Ghazi 1999-05-13 12:05:02 +00:00 committed by Kaveh Ghazi
parent 6de8697e4d
commit 1b01250dd0
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
1999-05-13 Kaveh R. Ghazi <ghazi@snafu.rutgers.edu>
* gjavah.c (print_include): Cast the result of `strlen' to int
when comparing against a signed value.
(add_namelet): Likewise.
1999-05-12 Kaveh R. Ghazi <ghazi@snafu.rutgers.edu>
* expr.c (expand_invoke): Mark parameter `nargs' with

View File

@ -927,7 +927,7 @@ print_include (out, utf8, len)
for (incl = all_includes; incl; incl = incl->next)
{
/* We check the length because we might have a proper prefix. */
if (len == strlen (incl->name)
if (len == (int) strlen (incl->name)
&& ! strncmp (incl->name, utf8, len))
return;
}
@ -1003,7 +1003,7 @@ add_namelet (name, name_limit, parent)
for (np = parent->subnamelets; np != NULL; np = np->next)
{
/* We check the length because we might have a proper prefix. */
if (strlen (np->name) == p - name &&
if ((int) strlen (np->name) == p - name &&
! strncmp (name, np->name, p - name))
{
n = np;