[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] sort: add --threads option to parallelize internal sort.
From: |
Chen Guo |
Subject: |
Re: [PATCH] sort: add --threads option to parallelize internal sort. |
Date: |
Thu, 11 Mar 2010 03:29:42 -0800 (PST) |
How stupid of me:
> +int
> +memcoll0 (const char *s1, size_t s1len, const char *s2, size_t s2len)
> +{
> + int diff;
> + if (!(s1len > 0 && s1[s1len] == '\0'))
> + abort ();
> + if (!(s2len > 0 && s2[s2len] == '\0'))
> + abort ();
should obviously be s1[s1len - 1] and s2[s2len - 1].