diff options
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-random-generator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-random-generator.cpp b/source/core/slang-random-generator.cpp index ec06336f1..315678f0a 100644 --- a/source/core/slang-random-generator.cpp +++ b/source/core/slang-random-generator.cpp @@ -8,7 +8,7 @@ namespace Slang { float RandomGenerator::nextUnitFloat32() { int32_t intValue = nextInt32(); - return (intValue & 0x7fffffff) * (1.0f / 0x7fffffff); + return (intValue & 0x7fffffff) * (1.0f / float(0x7fffffff)); } bool RandomGenerator::nextBool() |
