aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80
diff options
context:
space:
mode:
Diffstat (limited to 'sim/tic80')
-rw-r--r--sim/tic80/ChangeLog5
-rw-r--r--sim/tic80/insns4
2 files changed, 7 insertions, 2 deletions
diff --git a/sim/tic80/ChangeLog b/sim/tic80/ChangeLog
index 448dba9..ea81861 100644
--- a/sim/tic80/ChangeLog
+++ b/sim/tic80/ChangeLog
@@ -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.
diff --git a/sim/tic80/insns b/sim/tic80/insns
index fbbe6ff..dfe70c5 100644
--- a/sim/tic80/insns
+++ b/sim/tic80/insns
@@ -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)