diff --git a/samples/04_julia/main.cpp b/samples/04_julia/main.cpp index 9760e8c..a1ca8bc 100644 --- a/samples/04_julia/main.cpp +++ b/samples/04_julia/main.cpp @@ -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( diff --git a/samples/04_sobel/main.cpp b/samples/04_sobel/main.cpp index 43181b3..116d038 100644 --- a/samples/04_sobel/main.cpp +++ b/samples/04_sobel/main.cpp @@ -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( diff --git a/tutorials/interceptlayer/main-part1solution.cpp b/tutorials/interceptlayer/main-part1solution.cpp index 185e5e4..c94452f 100644 --- a/tutorials/interceptlayer/main-part1solution.cpp +++ b/tutorials/interceptlayer/main-part1solution.cpp @@ -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( diff --git a/tutorials/interceptlayer/main-part2solution.cpp b/tutorials/interceptlayer/main-part2solution.cpp index a91a2fc..c99914a 100644 --- a/tutorials/interceptlayer/main-part2solution.cpp +++ b/tutorials/interceptlayer/main-part2solution.cpp @@ -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( diff --git a/tutorials/interceptlayer/main-part3solution.cpp b/tutorials/interceptlayer/main-part3solution.cpp index 4912ec3..a8e84fa 100644 --- a/tutorials/interceptlayer/main-part3solution.cpp +++ b/tutorials/interceptlayer/main-part3solution.cpp @@ -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( diff --git a/tutorials/interceptlayer/main-part4solution.cpp b/tutorials/interceptlayer/main-part4solution.cpp index f802774..3bf5231 100644 --- a/tutorials/interceptlayer/main-part4solution.cpp +++ b/tutorials/interceptlayer/main-part4solution.cpp @@ -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( diff --git a/tutorials/interceptlayer/main-part5solution.cpp b/tutorials/interceptlayer/main-part5solution.cpp index 06e0f48..ff5d070 100644 --- a/tutorials/interceptlayer/main-part5solution.cpp +++ b/tutorials/interceptlayer/main-part5solution.cpp @@ -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( diff --git a/tutorials/interceptlayer/main-start.cpp b/tutorials/interceptlayer/main-start.cpp index 11e8959..c4cadbd 100644 --- a/tutorials/interceptlayer/main-start.cpp +++ b/tutorials/interceptlayer/main-start.cpp @@ -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( diff --git a/tutorials/interceptlayer/main.cpp b/tutorials/interceptlayer/main.cpp index 11e8959..c4cadbd 100644 --- a/tutorials/interceptlayer/main.cpp +++ b/tutorials/interceptlayer/main.cpp @@ -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(