Changeset 1802


Ignore:
Timestamp:
Jan 31, 2005, 5:26:52 AM (21 years ago)
Author:
bird
Message:

sort was wrong. 255 not 256.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/locale/setlocale.c

    • Property cvs2svn:cvs-rev changed from 1.16 to 1.17
    r1801 r1802  
    439439         * of equal elements stays the same.
    440440         */
    441         for (i = 0; i < 256; i++)
    442             for (j = i; j < 256; j++)
     441        for (i = 0; i < 255; i++)
     442            for (j = i; j < 255; j++)
    443443                if (UniStrncmp(aCW[j].ucsWeight, aCW[j + 1].ucsWeight, MIN(aCW[j].len, aCW[j + 1].len)) > 0)
    444444                    _memswap(&aCW[j], &aCW[j + 1], sizeof(aCW[j]));
Note: See TracChangeset for help on using the changeset viewer.