ICU-2015 stringPool_count was off by 1 in header
X-SVN-Rev: 10150
This commit is contained in:
parent
53ddbf2cdd
commit
4d2dedf595
@ -792,7 +792,7 @@ void Builder::fixupMiscellaneousOffsets() {
|
||||
header.nameGroupPool_offset = nameGroupPool_offset;
|
||||
header.nameGroupPool_count = (int16_t) nameGroupPool_count;
|
||||
header.stringPool_offset = stringPool_offset;
|
||||
header.stringPool_count = (int16_t) stringPool_count;
|
||||
header.stringPool_count = (int16_t) stringPool_count - 1; // don't include "" entry
|
||||
|
||||
U_ASSERT(valueMap_count <= 0x7FFF);
|
||||
U_ASSERT(nameGroupPool_count <= 0x7FFF);
|
||||
|
Loading…
Reference in New Issue
Block a user