Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/03_mandelbrot/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ int main(int argc, char** argv)

std::vector<uint8_t> 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;
Expand Down
6 changes: 3 additions & 3 deletions samples/vulkan/00_juliavk/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};

Expand Down
6 changes: 3 additions & 3 deletions samples/vulkan/01_nbodyvk/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};

Expand Down
Loading