X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Funicase%2Fu-casecmp.h;h=e1cf99c4676cdec9b5cc78ea4b64033aafdaa88d;hb=8def010e77c2bace5391a1cda45e158d9e0a3f7d;hp=8ae23d703ff221929d0e9f21a0edb9152e0dfe33;hpb=80ae500d4237e39ce2c63aea80b2a34e5887ce90;p=gnulib.git diff --git a/lib/unicase/u-casecmp.h b/lib/unicase/u-casecmp.h index 8ae23d703..e1cf99c46 100644 --- a/lib/unicase/u-casecmp.h +++ b/lib/unicase/u-casecmp.h @@ -54,15 +54,8 @@ FUNC (const SRC_UNIT *s1, size_t n1, const SRC_UNIT *s2, size_t n2, } /* Compare the normalized strings. */ - cmp = U_CMP (norms1, norms2, MIN (norms1_length, norms2_length)); - if (cmp == 0) - { - if (norms1_length < norms2_length) - cmp = -1; - else if (norms1_length > norms2_length) - cmp = 1; - } - else if (cmp > 0) + cmp = U_CMP2 (norms1, norms1_length, norms2, norms2_length); + if (cmp > 0) cmp = 1; else if (cmp < 0) cmp = -1;