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:
parent
6de8697e4d
commit
1b01250dd0
@ -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>
|
1999-05-12 Kaveh R. Ghazi <ghazi@snafu.rutgers.edu>
|
||||||
|
|
||||||
* expr.c (expand_invoke): Mark parameter `nargs' with
|
* 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)
|
for (incl = all_includes; incl; incl = incl->next)
|
||||||
{
|
{
|
||||||
/* We check the length because we might have a proper prefix. */
|
/* 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))
|
&& ! strncmp (incl->name, utf8, len))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1003,7 +1003,7 @@ add_namelet (name, name_limit, parent)
|
|||||||
for (np = parent->subnamelets; np != NULL; np = np->next)
|
for (np = parent->subnamelets; np != NULL; np = np->next)
|
||||||
{
|
{
|
||||||
/* We check the length because we might have a proper prefix. */
|
/* 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))
|
! strncmp (name, np->name, p - name))
|
||||||
{
|
{
|
||||||
n = np;
|
n = np;
|
||||||
|
Loading…
Reference in New Issue
Block a user