summaryrefslogtreecommitdiffstats
path: root/gcc/java/gjavah.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-13 12:05:02 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-05-13 12:05:02 +0000
commitb943f6db270ccc17104583174972d51796c9cb9e (patch)
treec672043a118cca14d38a996b76b24128b2a2f0c8 /gcc/java/gjavah.c
parentbd672e9e20f224b7193a9f8d1456f4169a9d3466 (diff)
downloadppe42-gcc-b943f6db270ccc17104583174972d51796c9cb9e.tar.gz
ppe42-gcc-b943f6db270ccc17104583174972d51796c9cb9e.zip
* gjavah.c (print_include): Cast the result of `strlen' to int
when comparing against a signed value. (add_namelet): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26924 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/gjavah.c')
-rw-r--r--gcc/java/gjavah.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c
index 459baa3fc82..f99ad5b2910 100644
--- a/gcc/java/gjavah.c
+++ b/gcc/java/gjavah.c
@@ -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;
OpenPOWER on IntegriCloud