Skip to content

Commit

Permalink
Change c-cast to c++
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Apr 5, 2019
1 parent 56badbe commit d46612c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/seacas/applications/nem_spread/pe_load_lb_info.C
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ template <typename T, typename INT> void NemSpread<T, INT>::load_lb_info()
else {

/* Always allocate at least one and initialize the counts to 0 */
globals.N_Comm_Map[iproc] = (NODE_COMM_MAP<INT> *)malloc(
PEX_MAX(1, globals.Num_N_Comm_Maps[iproc]) * sizeof(NODE_COMM_MAP<INT>));
globals.N_Comm_Map[iproc] = static_cast<NODE_COMM_MAP<INT> *>(
malloc(PEX_MAX(1, globals.Num_N_Comm_Maps[iproc]) * sizeof(NODE_COMM_MAP<INT>)));
if (globals.N_Comm_Map[iproc] == nullptr && globals.Num_N_Comm_Maps[iproc] > 0) {
fprintf(stderr, "%s: ERROR. Insufficient memory for nodal comm. map!\n", yo);
exit(1);
Expand All @@ -190,8 +190,8 @@ template <typename T, typename INT> void NemSpread<T, INT>::load_lb_info()
((globals.N_Comm_Map[iproc]) + ijump)->node_cnt = 0;
}

globals.E_Comm_Map[iproc] = (ELEM_COMM_MAP<INT> *)malloc(
PEX_MAX(1, globals.Num_E_Comm_Maps[iproc]) * sizeof(ELEM_COMM_MAP<INT>));
globals.E_Comm_Map[iproc] = static_cast<ELEM_COMM_MAP<INT> *>(
malloc(PEX_MAX(1, globals.Num_E_Comm_Maps[iproc]) * sizeof(ELEM_COMM_MAP<INT>)));
if (globals.E_Comm_Map[iproc] == nullptr && globals.Num_E_Comm_Maps[iproc] > 0) {
fprintf(stderr, "%s: ERROR. Insufficient memory for elemental comm. map!\n", yo);
exit(1);
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/libraries/ioss/src/main/io_shell_ts.C
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ namespace {

void *transfer_field_data_ts(void *varg)
{
param *arg = (param *)varg;
param *arg = static_cast<param *>(varg);
auto entity = arg->entity;
auto output_region = arg->output_region;
auto interface = arg->interface;
Expand Down

0 comments on commit d46612c

Please sign in to comment.