File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
icu4c/source/test/cintltst Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1535,10 +1535,10 @@ static void TestISOFunctions(void)
1535
1535
static void setUpDataTable (void )
1536
1536
{
1537
1537
int32_t i ,j ;
1538
- dataTable = (UChar * * * )(calloc (sizeof (UChar * * ), LOCALE_INFO_SIZE ));
1538
+ dataTable = (UChar * * * )(calloc (LOCALE_INFO_SIZE , sizeof (UChar * * )));
1539
1539
1540
1540
for (i = 0 ; i < LOCALE_INFO_SIZE ; i ++ ) {
1541
- dataTable [i ] = (UChar * * )(calloc (sizeof (UChar * ), LOCALE_SIZE ));
1541
+ dataTable [i ] = (UChar * * )(calloc (LOCALE_SIZE , sizeof (UChar * )));
1542
1542
for (j = 0 ; j < LOCALE_SIZE ; j ++ ){
1543
1543
dataTable [i ][j ] = CharsToUChars (rawData2 [i ][j ]);
1544
1544
}
Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ static void setUpDataTable(void)
76
76
{
77
77
int32_t i ,j ;
78
78
if (dataTable == NULL ) {
79
- dataTable = (UChar * * * )calloc (sizeof (UChar * * ), 3 );
79
+ dataTable = (UChar * * * )calloc (3 , sizeof (UChar * * ));
80
80
81
81
for (i = 0 ; i < 3 ; i ++ ) {
82
- dataTable [i ] = (UChar * * )calloc (sizeof (UChar * ), 4 );
82
+ dataTable [i ] = (UChar * * )calloc (4 , sizeof (UChar * ));
83
83
for (j = 0 ; j < 4 ; j ++ ){
84
84
dataTable [i ][j ] = (UChar * ) malloc (sizeof (UChar )* (strlen (raw [i ][j ])+ 1 ));
85
85
u_uastrcpy (dataTable [i ][j ],raw [i ][j ]);
You can’t perform that action at this time.
0 commit comments