Commit 1b01250d by Kaveh R. Ghazi Committed by Kaveh Ghazi

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
parent 6de8697e
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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment