aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
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;
}