mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-20 20:19:32 +00:00
ICU-12913 Add cast to avoid printf compile warning.
X-SVN-Rev: 39688
This commit is contained in:
parent
4c2fad3e36
commit
4ff013c080
1 changed files with 4 additions and 4 deletions
|
@ -381,7 +381,7 @@ U_CDECL_END
|
|||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
Package::Package()
|
||||
Package::Package()
|
||||
: doAutoPrefix(FALSE), prefixEndsWithType(FALSE) {
|
||||
inPkgName[0]=0;
|
||||
pkgPrefix[0]=0;
|
||||
|
@ -1281,7 +1281,7 @@ Package::sortItems() {
|
|||
}
|
||||
}
|
||||
|
||||
void Package::setItemCapacity(int32_t max)
|
||||
void Package::setItemCapacity(int32_t max)
|
||||
{
|
||||
if(max<=itemMax) {
|
||||
return;
|
||||
|
@ -1289,8 +1289,8 @@ void Package::setItemCapacity(int32_t max)
|
|||
Item *newItems = (Item*)uprv_malloc(max * sizeof(items[0]));
|
||||
Item *oldItems = items;
|
||||
if(newItems == NULL) {
|
||||
fprintf(stderr, "icupkg: Out of memory trying to allocate %lu bytes for %d items\n",
|
||||
(unsigned long)max*sizeof(items[0]), max);
|
||||
fprintf(stderr, "icupkg: Out of memory trying to allocate %lu bytes for %d items\n",
|
||||
(unsigned long)(max*sizeof(items[0])), max);
|
||||
exit(U_MEMORY_ALLOCATION_ERROR);
|
||||
}
|
||||
if(items && itemCount>0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue