OSDN Git Service

* gjavah.c (print_include): Cast the result of `strlen' to int
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 May 1999 12:05:02 +0000 (12:05 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 May 1999 12:05:02 +0000 (12:05 +0000)
        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

gcc/java/ChangeLog
gcc/java/gjavah.c

index 588e1af..30e1b56 100644 (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
index 459baa3..f99ad5b 100644 (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;