aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@snafu.rutgers.edu>1999-05-13 12:05:02 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-05-13 12:05:02 +0000
commit1b01250dd06ece2a184526053a5fccd62f51f5f8 (patch)
treec672043a118cca14d38a996b76b24128b2a2f0c8 /gcc/java
parent6de8697e4d786fd71ac04036038190e3e5109bc4 (diff)
downloadgcc-1b01250dd06ece2a184526053a5fccd62f51f5f8.zip
gcc-1b01250dd06ece2a184526053a5fccd62f51f5f8.tar.gz
gcc-1b01250dd06ece2a184526053a5fccd62f51f5f8.tar.bz2
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
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog6
-rw-r--r--gcc/java/gjavah.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 588e1af..30e1b56 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -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
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c
index 459baa3..f99ad5b 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;