Cleanup: compiler warning
This commit is contained in:
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)
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue