aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32
diff options
context:
space:
mode:
Diffstat (limited to 'sim/erc32')
-rw-r--r--sim/erc32/ChangeLog6
-rw-r--r--sim/erc32/exec.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/sim/erc32/ChangeLog b/sim/erc32/ChangeLog
index 109a13b..4f9b502 100644
--- a/sim/erc32/ChangeLog
+++ b/sim/erc32/ChangeLog
@@ -1,3 +1,9 @@
+2015-04-24 David Binderman <dcb314@hotmail.com>
+ Nick Clifton <nickc@redhat.com>
+
+ PR 18273
+ * exec.c (add32): Fix typo in check for overflow.
+
2015-04-19 Jiri Gaisler <jiri@gaisler.se>
* erc32.c (current_target_byte_order): Delete.
diff --git a/sim/erc32/exec.c b/sim/erc32/exec.c
index d31032b..0d87aa3 100644
--- a/sim/erc32/exec.c
+++ b/sim/erc32/exec.c
@@ -292,7 +292,7 @@ add32 (uint32 n1, uint32 n2, int *carry)
{
uint32 result = n1 + n2;
- *carry = result < n1 || result < n1;
+ *carry = result < n1 || result < n2;
return result;
}