diff --git a/samples/03_mandelbrot/main.cpp b/samples/03_mandelbrot/main.cpp index 7cb8b3d..da02230 100644 --- a/samples/03_mandelbrot/main.cpp +++ b/samples/03_mandelbrot/main.cpp @@ -125,7 +125,7 @@ int main(int argc, char** argv) std::vector colors; colors.resize(width * height); - for (int i = 0; i < width * height; ++i) { + for (cl_uint i = 0; i < width * height; ++i) { // Map the iteration count to colors by just alternating between // two greys. colors[i] = (buf[i] & 0x1) ? 240 : 20; diff --git a/samples/vulkan/00_juliavk/main.cpp b/samples/vulkan/00_juliavk/main.cpp index 76bbbf8..410347d 100644 --- a/samples/vulkan/00_juliavk/main.cpp +++ b/samples/vulkan/00_juliavk/main.cpp @@ -120,11 +120,11 @@ struct QueueFamilyIndices { uint32_t presentFamily; QueueFamilyIndices() : - graphicsFamily(~0), - presentFamily(~0) {} + graphicsFamily(~0U), + presentFamily(~0U) {} bool isComplete() { - return graphicsFamily != ~0 && presentFamily != ~0; + return graphicsFamily != ~0U && presentFamily != ~0U; } }; diff --git a/samples/vulkan/01_nbodyvk/main.cpp b/samples/vulkan/01_nbodyvk/main.cpp index f2a4162..b414ffd 100644 --- a/samples/vulkan/01_nbodyvk/main.cpp +++ b/samples/vulkan/01_nbodyvk/main.cpp @@ -119,11 +119,11 @@ struct QueueFamilyIndices { uint32_t presentFamily; QueueFamilyIndices() : - graphicsFamily(~0), - presentFamily(~0) {} + graphicsFamily(~0U), + presentFamily(~0U) {} bool isComplete() { - return graphicsFamily != ~0 && presentFamily != ~0; + return graphicsFamily != ~0U && presentFamily != ~0U; } };