mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-5889 Change unusual looking code with more standard looking code that doesn't trigger warnings.
X-SVN-Rev: 22620
This commit is contained in:
parent
7feae9ed00
commit
93b3ad0a4f
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
***************************************************************************
|
||||
* Copyright (C) 1999-2006 International Business Machines Corporation *
|
||||
* Copyright (C) 1999-2007 International Business Machines Corporation *
|
||||
* and others. All rights reserved. *
|
||||
***************************************************************************
|
||||
*/
|
||||
|
@ -368,8 +368,7 @@ ubrk_swap(const UDataSwapper *ds, const void *inData, int32_t length, void *outD
|
|||
// Each state table begins with several 32 bit fields. Calculate the size
|
||||
// in bytes of these.
|
||||
//
|
||||
RBBIStateTable *stp = NULL;
|
||||
int32_t topSize = (char *)stp->fTableData - (char *)stp;
|
||||
int32_t topSize = offsetof(RBBIStateTable, fTableData);
|
||||
|
||||
// Forward state table.
|
||||
tableStartOffset = ds->readUInt32(rbbiDH->fFTable);
|
||||
|
|
Loading…
Add table
Reference in a new issue