Skip to content

Commit

Permalink
fixes a compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug committed Jan 8, 2024
1 parent 7283fcb commit be0a2f3
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion samples/04_julia/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ int main(
0,
gwx * gwy * sizeof(cl_uchar4) ) );

stbi_write_bmp(filename, gwx, gwy, 4, buf);
stbi_write_bmp(filename, (int)gwx, (int)gwy, 4, buf);
printf("Wrote image file %s\n", filename);

commandQueue.enqueueUnmapMemObject(
Expand Down
2 changes: 1 addition & 1 deletion samples/04_sobel/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ int main(
0,
gwx * gwy * sizeof(cl_uchar4) ) );

stbi_write_bmp(filename, gwx, gwy, 4, buf);
stbi_write_bmp(filename, (int)gwx, (int)gwy, 4, buf);
printf("Wrote image file %s\n", filename);

commandQueue.enqueueUnmapMemObject(
Expand Down
2 changes: 1 addition & 1 deletion tutorials/interceptlayer/main-part1solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static void checkResults()
0,
gwx * gwy * sizeof(cl_uchar4) ) );

stbi_write_bmp(filename, gwx, gwy, 4, buf);
stbi_write_bmp(filename, (int)gwx, (int)gwy, 4, buf);
printf("Wrote image file %s\n", filename);

commandQueue.enqueueUnmapMemObject(
Expand Down
2 changes: 1 addition & 1 deletion tutorials/interceptlayer/main-part2solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static void checkResults()
0,
gwx * gwy * sizeof(cl_uchar4) ) );

stbi_write_bmp(filename, gwx, gwy, 4, buf);
stbi_write_bmp(filename, (int)gwx, (int)gwy, 4, buf);
printf("Wrote image file %s\n", filename);

commandQueue.enqueueUnmapMemObject(
Expand Down
2 changes: 1 addition & 1 deletion tutorials/interceptlayer/main-part3solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static void checkResults()
0,
gwx * gwy * sizeof(cl_uchar4) ) );

stbi_write_bmp(filename, gwx, gwy, 4, buf);
stbi_write_bmp(filename, (int)gwx, (int)gwy, 4, buf);
printf("Wrote image file %s\n", filename);

commandQueue.enqueueUnmapMemObject(
Expand Down
2 changes: 1 addition & 1 deletion tutorials/interceptlayer/main-part4solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static void checkResults()
0,
gwx * gwy * sizeof(cl_uchar4) ) );

stbi_write_bmp(filename, gwx, gwy, 4, buf);
stbi_write_bmp(filename, (int)gwx, (int)gwy, 4, buf);
printf("Wrote image file %s\n", filename);

commandQueue.enqueueUnmapMemObject(
Expand Down
2 changes: 1 addition & 1 deletion tutorials/interceptlayer/main-part5solution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static void checkResults()
0,
gwx * gwy * sizeof(cl_uchar4) ) );

stbi_write_bmp(filename, gwx, gwy, 4, buf);
stbi_write_bmp(filename, (int)gwx, (int)gwy, 4, buf);
printf("Wrote image file %s\n", filename);

commandQueue.enqueueUnmapMemObject(
Expand Down
2 changes: 1 addition & 1 deletion tutorials/interceptlayer/main-start.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static void checkResults()
0,
gwx * gwy * sizeof(cl_uchar4) ) );

stbi_write_bmp(filename, gwx, gwy, 4, buf);
stbi_write_bmp(filename, (int)gwx, (int)gwy, 4, buf);
printf("Wrote image file %s\n", filename);

commandQueue.enqueueUnmapMemObject(
Expand Down
2 changes: 1 addition & 1 deletion tutorials/interceptlayer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static void checkResults()
0,
gwx * gwy * sizeof(cl_uchar4) ) );

stbi_write_bmp(filename, gwx, gwy, 4, buf);
stbi_write_bmp(filename, (int)gwx, (int)gwy, 4, buf);
printf("Wrote image file %s\n", filename);

commandQueue.enqueueUnmapMemObject(
Expand Down

0 comments on commit be0a2f3

Please sign in to comment.