Fixed two more casting errors (signed / unsigned) in sf::Time
This commit is contained in:
parent
bdf3380cb3
commit
90ba800e1b
@ -72,14 +72,14 @@ m_microseconds(microseconds)
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
Time seconds(float amount)
|
Time seconds(float amount)
|
||||||
{
|
{
|
||||||
return Time(static_cast<Uint64>(amount * 1000000));
|
return Time(static_cast<Int64>(amount * 1000000));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
Time milliseconds(Int32 amount)
|
Time milliseconds(Int32 amount)
|
||||||
{
|
{
|
||||||
return Time(static_cast<Uint64>(amount) * 1000);
|
return Time(static_cast<Int64>(amount) * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user