Fixed two more casting errors (signed / unsigned) in sf::Time

This commit is contained in:
Laurent Gomila 2012-03-29 17:54:35 +02:00
parent bdf3380cb3
commit 90ba800e1b

View File

@ -72,14 +72,14 @@ m_microseconds(microseconds)
////////////////////////////////////////////////////////////
Time seconds(float amount)
{
return Time(static_cast<Uint64>(amount * 1000000));
return Time(static_cast<Int64>(amount * 1000000));
}
////////////////////////////////////////////////////////////
Time milliseconds(Int32 amount)
{
return Time(static_cast<Uint64>(amount) * 1000);
return Time(static_cast<Int64>(amount) * 1000);
}