- remove one more warning

This commit is contained in:
Dmytro Bogovych 2019-03-31 20:54:39 +03:00
parent 47e21e5a54
commit b9237688f2
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ namespace MT
int result = rand();
result = (int)(result / ((float)RAND_MAX / maxvalue) + 0.5);
result = static_cast<int>(result / ((float)RAND_MAX / maxvalue) + 0.5);
if (result > maxvalue)
result = maxvalue;