ICU-535 casted HP/UX warning on size_t to int

X-SVN-Rev: 3726
This commit is contained in:
Jim Snyder Grant 2001-02-22 17:08:56 +00:00
parent 8da891a5c1
commit f8a3510d6a
2 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;
}