Merge pull request #790 from kuhar/clang-warnings

[NFC] Fix clang 10 warnings
This commit is contained in:
Sascha Willems 2022-12-31 14:03:31 +01:00 committed by GitHub
commit ac1a216ac6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@
float rnd()
{
return ((float) rand() / (RAND_MAX));
return static_cast<float>(rand()) / static_cast<float>(RAND_MAX);
}
class VulkanExample : public VulkanExampleBase
@ -292,4 +292,4 @@ public:
}
};
VULKAN_EXAMPLE_MAIN()
VULKAN_EXAMPLE_MAIN()