aboutsummaryrefslogtreecommitdiff
path: root/opcodes/z8kgen.c
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/z8kgen.c
parenteae14d64d117e16e474dfcf35353c50ce4a22fb5 (diff)
downloadgdb-815c0482cbdf89fce2ac7d4d8df9908fcac2e1a0.zip
gdb-815c0482cbdf89fce2ac7d4d8df9908fcac2e1a0.tar.gz
gdb-815c0482cbdf89fce2ac7d4d8df9908fcac2e1a0.tar.bz2
* z8kgen.c (func): Fix thinko last patch.
Diffstat (limited to 'opcodes/z8kgen.c')
-rw-r--r--opcodes/z8kgen.c2
1 files changed, 1 insertions, 1 deletions
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;
}