openmp on windows/msvc needs signed type
@@ -642,7 +642,8 @@ static size_t get_dense_ir_reciprocal_mesh_normal(int grid_address[][3],
/* grid: reducible grid points */
/* ir_mapping_table: the mapping from each point to ir-point. */
- size_t i, grid_point_rot;
+ ptrdiff_t i;
+ size_t grid_point_rot;
int j;
int address_double[3], address_double_rot[3];
@@ -681,7 +682,8 @@ get_dense_ir_reciprocal_mesh_distortion(int grid_address[][3],
const int is_shift[3],
const MatINT *rot_reciprocal)
{
- size_t i, grid_point_rot;
+ ptrdiff_t i;
+ size_t grid_point_rot;
int j, k, indivisible;
int address_double[3], address_double_rot[3];
long long_address_double[3], long_address_double_rot[3], divisor[3];
@@ -744,7 +746,8 @@ get_dense_ir_reciprocal_mesh_distortion(int grid_address[][3],
static size_t get_dense_num_ir(size_t ir_mapping_table[], const int mesh[3])
{
- size_t i, num_ir;
+ ptrdiff_t i;
+ size_t num_ir;
num_ir = 0;
