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

@ -16,7 +16,7 @@
#define ENABLE_VALIDATION false
float rnd() {
return ((float)rand() / (RAND_MAX));
return static_cast<float>(rand()) / static_cast<float>(RAND_MAX);
}
class VulkanExample : public VulkanExampleBase

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