1
0
Fork 0

Codefix: Cast from double to float.

pull/13515/head
Peter Nelson 2025-02-15 12:15:52 +00:00
parent b23c94483d
commit 4dceb9d8fc
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ static void CreateRandomStarShapedPolygon(int radius, std::span<Point> shape)
/* Valid values for the phase of blob harmonics are between 0 and Tau. we can get a value in the correct range
* from Random() by dividing the maximum possible value by the desired maximum, and then dividing the random
* value by the result. */
static constexpr float PHASE_DIVISOR = INT32_MAX / (M_PI * 2);
static constexpr float PHASE_DIVISOR = static_cast<float>(INT32_MAX / M_PI * 2);
/* These values are ones found in testing that result in suitable-looking polygons that did not self-intersect
* and fit within a square of radius * radius dimensions. */