We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The call to win32api.GetTickCount() is returning a signed integer. It should be unsigned.
In particular, this causes problems when comparing it to, say, win32api.GetLastInputInfo() which returns an unsigned integer.
For more information, see this StackOverflow question: http://stackoverflow.com/questions/36312480/getlastinputinfo-and-gettickcount-are-not-consistent-with-each-other/
Reported by: oddthinking
Original Ticket: pywin32/bugs/718
The text was updated successfully, but these errors were encountered:
This has been here for a while.
A quick solution:
tick_count = win32api.GetTickCount() if tick_count < 0: tick_count+= 2**32
Sorry, something went wrong.
Make win32api.GetTickCount() return unsigned 64bit mhammond#718
48679b8
Uses Win API GetTickCount64() now - available since Vista
Should return unsigned 64bit via #1946
this issue can be closed , because win32api.GetTickCount() returns an unsigned 64bit integer , since the already released version 305 of pywin32 .
No branches or pull requests
The call to win32api.GetTickCount() is returning a signed integer. It should be unsigned.
In particular, this causes problems when comparing it to, say, win32api.GetLastInputInfo() which returns an unsigned integer.
For more information, see this StackOverflow question: http://stackoverflow.com/questions/36312480/getlastinputinfo-and-gettickcount-are-not-consistent-with-each-other/
Reported by: oddthinking
Original Ticket: pywin32/bugs/718
The text was updated successfully, but these errors were encountered: