From 7bb711a3d66730807bd54b78d5a848aef3c666c5 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 15 Apr 2007 21:42:42 +0000 Subject: 23278: fix NUMERICGLOBSORT, broken by multibyte fixes --- Src/sort.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Src/sort.c') diff --git a/Src/sort.c b/Src/sort.c index f312150df..e88cc2cea 100644 --- a/Src/sort.c +++ b/Src/sort.c @@ -42,8 +42,8 @@ eltpcmp(const void *a, const void *b) { const SortElt ae = *(const SortElt *)a; const SortElt be = *(const SortElt *)b; - const char *as = ae->cmp; - const char *bs = be->cmp; + const char *as = ae->cmp, *bs = be->cmp; + const char *ao = as; int cmp; if (ae->len != -1 || be->len != -1) { @@ -122,7 +122,7 @@ eltpcmp(const void *a, const void *b) cmp = (int)STOUC(*as) - (int)STOUC(*bs); #endif if (idigit(*as) || idigit(*bs)) { - for (; as > *(char **)a && idigit(as[-1]); as--, bs--); + for (; as > ao && idigit(as[-1]); as--, bs--); if (idigit(*as) && idigit(*bs)) { while (*as == '0') as++; -- cgit v1.2.3