mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
parent
14cd5fbe4e
commit
91989d38a0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue