Skip to content

Commit 7741f65

Browse files
committed
fix(precon): Cast to CeedSize before multiplication
1 parent ef67a58 commit 7741f65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/ceed-preconditioning.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ static int CeedSingleOperatorAssembleSymbolic(CeedOperator op, CeedInt offset, C
500500
layout_er_out[2] = layout_er_in[2];
501501
elem_dof_a_out = elem_dof_a_in;
502502
}
503-
local_num_entries = elem_size_out * num_comp_out * elem_size_in * num_comp_in * num_elem_in;
503+
local_num_entries = (CeedSize)elem_size_out * num_comp_out * elem_size_in * num_comp_in * num_elem_in;
504504

505505
// Determine i, j locations for element matrices
506506
for (CeedInt e = 0; e < num_elem_in; e++) {

0 commit comments

Comments
 (0)