From 815c0482cbdf89fce2ac7d4d8df9908fcac2e1a0 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 7 Sep 2009 13:01:35 +0000 Subject: [PATCH] * z8kgen.c (func): Fix thinko last patch. --- opcodes/ChangeLog | 4 ++++ opcodes/z8kgen.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 188c41fb3fb..736cd2f541a 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2009-09-07 Alan Modra + + * z8kgen.c (func): Fix thinko last patch. + 2009-09-07 Alan Modra * z8kgen.c (func): Stabilize qsort of identically named entries. diff --git a/opcodes/z8kgen.c b/opcodes/z8kgen.c index cbd316d3d56..8d418f7be3f 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; } -- 2.30.2