Cleanup: compiler warning

This commit is contained in:
Brecht Van Lommel 2020-06-22 12:32:34 +02:00
parent 8ffb006077
commit f9d138be51
Notes: blender-bot 2023-02-14 10:29:30 +01:00
Referenced by issue #78149, Animation render seemingly not freeing up memory (2.90.0 Regression)
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ static void init_genrand(ulong s)
const float range = 32; /* range in both pos/neg direction */
for (j = 0; j < ARRAY_SIZE(state_offset_vector); j++, state_offset++) {
/* overflow is fine here */
state_offset_vector[j] = (float)(int)(*state_offset) * (1.0f / (INT_MAX / range));
state_offset_vector[j] = (float)(int)(*state_offset) * (1.0f / ((float)INT_MAX / range));
}
}
}