mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-45 Fix for windows
X-SVN-Rev: 556
This commit is contained in:
parent
478438a905
commit
b4674418b6
1 changed files with 3 additions and 1 deletions
|
@ -44,6 +44,8 @@ BreakDictionary::readDictionaryFile(FileStream* in)
|
|||
int32_t l;
|
||||
int32_t version;
|
||||
|
||||
int i;
|
||||
|
||||
// read in the version number (right now we just ignore it)
|
||||
T_FileStream_read(in, &version, 4);
|
||||
|
||||
|
@ -53,7 +55,7 @@ BreakDictionary::readDictionaryFile(FileStream* in)
|
|||
SWAP32(l);
|
||||
uint16_t* temp = new uint16_t[l];
|
||||
T_FileStream_read(in, temp, l * sizeof (int16_t) );
|
||||
for (int i = 0; i < l; i++) {
|
||||
for (i = 0; i < l; i++) {
|
||||
SWAP16(temp[i]);
|
||||
}
|
||||
T_FileStream_read(in, &l, 4);
|
||||
|
|
Loading…
Add table
Reference in a new issue