aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-09-07 13:01:35 +0000
committerAlan Modra <amodra@gmail.com>2009-09-07 13:01:35 +0000
commit815c0482cbdf89fce2ac7d4d8df9908fcac2e1a0 (patch)
tree1b58a6cba347d43cf879d6ccb8571eb2d711e215 /opcodes
parenteae14d64d117e16e474dfcf35353c50ce4a22fb5 (diff)
downloadgdb-815c0482cbdf89fce2ac7d4d8df9908fcac2e1a0.zip
gdb-815c0482cbdf89fce2ac7d4d8df9908fcac2e1a0.tar.gz
gdb-815c0482cbdf89fce2ac7d4d8df9908fcac2e1a0.tar.bz2
* z8kgen.c (func): Fix thinko last patch.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/z8kgen.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 188c41f..736cd2f 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,5 +1,9 @@
2009-09-07 Alan Modra <amodra@bigpond.net.au>
+ * z8kgen.c (func): Fix thinko last patch.
+
+2009-09-07 Alan Modra <amodra@bigpond.net.au>
+
* z8kgen.c (func): Stabilize qsort of identically named entries.
* z8k-opc.h: Regenerate.
diff --git a/opcodes/z8kgen.c b/opcodes/z8kgen.c
index cbd316d..8d418f7 100644
--- a/opcodes/z8kgen.c
+++ b/opcodes/z8kgen.c
@@ -574,7 +574,7 @@ func (const void *p1, const void *p2)
int ret = strcmp (a->name, b->name);
if (ret != 0)
return ret;
- return p1 > p2;
+ return p1 > p2 ? 1 : -1;
}