Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: About timer asMiliseconds impl  (Read 2643 times)

0 Members and 1 Guest are viewing this topic.

belphegor

  • Newbie
  • *
  • Posts: 8
    • View Profile
About timer asMiliseconds impl
« on: March 29, 2012, 04:38:07 pm »
Code: [Select]
Int32 Time::asMilliseconds() const
{
    return static_cast<Uint32>(m_microseconds / 1000);
}

Care to explain why cast to Uint32 and then return Int32?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: About timer asMiliseconds impl
« Reply #1 on: March 29, 2012, 05:20:36 pm »
Just a mistake, it's corrected now.
Laurent Gomila - SFML developer

belphegor

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: About timer asMiliseconds impl
« Reply #2 on: March 29, 2012, 05:47:35 pm »
There is still few more casting "mistakes" in same file.  :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: About timer asMiliseconds impl
« Reply #3 on: March 29, 2012, 05:53:21 pm »
Arg... Should be ok now :P
Laurent Gomila - SFML developer