Skip to content

Commit d76a518

Browse files
committed
[oneMKL samples][computed tomography] Clarifying 'unsigned' are 'unsigned int' in bmp_write
1 parent 4c547fd commit d76a518

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/oneMKL/computed_tomography/computed_tomography.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ void bmp_write(const std::string& fname, const padded_matrix &image,
172172
if (max_i <= min_i || max_j <= min_j)
173173
die("invalid range of pixel indices for bmp_write to export");
174174

175-
unsigned sizeof_line = ((max_j - min_j) * 3 + 3) / 4 * 4;
176-
unsigned sizeof_image = (max_i - min_i) * sizeof_line;
175+
unsigned int sizeof_line = ((max_j - min_j) * 3 + 3) / 4 * 4;
176+
unsigned int sizeof_image = (max_i - min_i) * sizeof_line;
177177

178178
bmp_header header = {{'B', 'M'},
179179
unsigned(sizeof(header) + sizeof_image),

0 commit comments

Comments
 (0)