ICU-7622 Merge r27992 for regex fix ticket #7651.

X-SVN-Rev: 27993
This commit is contained in:
Michael Ow 2010-04-28 02:38:40 +00:00
parent 14cd5fbe4e
commit 91989d38a0

View file

@ -243,7 +243,7 @@ void RegexMatcher::init2(UText *input, UErrorCode &status) {
return;
}
if (fPattern->fDataSize > (int32_t)(sizeof(fSmallData)/sizeof(int32_t))) {
if (fPattern->fDataSize > (int32_t)(sizeof(fSmallData)/sizeof(fSmallData[0]))) {
fData = (int64_t *)uprv_malloc(fPattern->fDataSize * sizeof(int64_t));
if (fData == NULL) {
status = fDeferredStatus = U_MEMORY_ALLOCATION_ERROR;