Passify GCC.
authorAndrew Cagney <cagney@redhat.com>
Sat, 30 Aug 1997 00:01:12 +0000 (00:01 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 30 Aug 1997 00:01:12 +0000 (00:01 +0000)
sim/tic80/ChangeLog
sim/tic80/insns

index 448dba957d45fb55c112e3dd185d1e9f226ffd47..ea81861c17c41ded5d6bd84dc523fab6bfc96e01 100644 (file)
@@ -1,3 +1,8 @@
+Sat Aug 30 09:40:47 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * insns (do_trap): Unsigned `i' for unsigned iterator.
+       (do_trap): Ditto for comparison with getpid.
+
 Wed Aug 27 18:13:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * configure: Regenerated to track ../common/aclocal.m4 changes.
index fbbe6ff7d8e8380f27b367d14ecda9ec7f09604d..dfe70c5bde9bce7aadb3c11d95d91324dd532d09 100644 (file)
@@ -1161,7 +1161,7 @@ void::function::do_trap:unsigned32 trap_number
                }
              case 4: /* WRITE */
                {
-                 int i;
+                 unsigned i;
                  if (GPR(2) == 1)
                    for (i = 0; i < GPR(6); i++)
                      {
@@ -1189,7 +1189,7 @@ void::function::do_trap:unsigned32 trap_number
                  break;
                }
              case 37: /* KILL */
-               if (GPR (2) != getpid ())
+               if ( GPR (2) != (unsigned) getpid ())
                  {
                    int ret = kill (GPR(2), GPR(4));
                    if (ret < 0)