mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Some /W4 warning fixes
This commit is contained in:
@@ -66,8 +66,8 @@ Milliseconds randtime(Milliseconds const& min, Milliseconds const& max)
|
||||
{
|
||||
long long diff = max.count() - min.count();
|
||||
ASSERT(diff >= 0);
|
||||
ASSERT(diff <= (uint32)-1);
|
||||
return min + Milliseconds(urand(0, diff));
|
||||
ASSERT(diff <= 0xFFFFFFFF);
|
||||
return min + Milliseconds(urand(0, uint32(diff)));
|
||||
}
|
||||
|
||||
uint32 rand32()
|
||||
|
||||
Reference in New Issue
Block a user