ICU-535 casted HP/UX warning on size_t to int
X-SVN-Rev: 3726
This commit is contained in:
parent
8da891a5c1
commit
f8a3510d6a
@ -274,18 +274,18 @@ BreakIterator * DictionaryBasedBreakIterator::createBufferClone(void *stackBuff
|
||||
}
|
||||
if (text == NULL)
|
||||
{
|
||||
bufferSizeNeeded = sizeof(DictionaryBasedBreakIterator);
|
||||
bufferSizeNeeded = (int32_t) sizeof(DictionaryBasedBreakIterator);
|
||||
IterIsString = IterIsUChar = FALSE;
|
||||
}
|
||||
else if (text->getDynamicClassID() == StringCharacterIterator::getStaticClassID())
|
||||
{
|
||||
bufferSizeNeeded = sizeof(struct bufferCloneStructString);
|
||||
bufferSizeNeeded = (int32_t) sizeof(struct bufferCloneStructString);
|
||||
IterIsString = TRUE;
|
||||
IterIsUChar = FALSE;
|
||||
}
|
||||
else if (text->getDynamicClassID() == UCharCharacterIterator::getStaticClassID())
|
||||
{
|
||||
bufferSizeNeeded = sizeof(struct bufferCloneStructUChar);
|
||||
bufferSizeNeeded = (int32_t) sizeof(struct bufferCloneStructUChar);
|
||||
IterIsString = FALSE;
|
||||
IterIsUChar = TRUE;
|
||||
}
|
||||
|
@ -593,18 +593,18 @@ BreakIterator * RuleBasedBreakIterator::createBufferClone(void *stackBuffer,
|
||||
}
|
||||
if (text == NULL)
|
||||
{
|
||||
bufferSizeNeeded = sizeof(RuleBasedBreakIterator);
|
||||
bufferSizeNeeded = (int32_t) sizeof(RuleBasedBreakIterator);
|
||||
IterIsString = IterIsUChar = FALSE;
|
||||
}
|
||||
else if (text->getDynamicClassID() == StringCharacterIterator::getStaticClassID())
|
||||
{
|
||||
bufferSizeNeeded = sizeof(struct bufferCloneStructString);
|
||||
bufferSizeNeeded = (int32_t) sizeof(struct bufferCloneStructString);
|
||||
IterIsString = TRUE;
|
||||
IterIsUChar = FALSE;
|
||||
}
|
||||
else if (text->getDynamicClassID() == UCharCharacterIterator::getStaticClassID())
|
||||
{
|
||||
bufferSizeNeeded = sizeof(struct bufferCloneStructUChar);
|
||||
bufferSizeNeeded = (int32_t) sizeof(struct bufferCloneStructUChar);
|
||||
IterIsString = FALSE;
|
||||
IterIsUChar = TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user