[Libreoffice-commits] core.git: vcl/win
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Mon Feb 3 22:46:47 UTC 2020
vcl/win/app/salinst.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit e23f811c7d0f956467d359990298222cf8d2c26d
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Feb 3 16:53:26 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Feb 3 23:46:14 2020 +0100
Avoid loplugin:unsignedcompare (clang-cl)
Change-Id: I95f348cc8b69b6c865ad0038b9ee0017def01e43
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87896
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/vcl/win/app/salinst.cxx b/vcl/win/app/salinst.cxx
index 26ce820a1b67..e97e8cbe4cdc 100644
--- a/vcl/win/app/salinst.cxx
+++ b/vcl/win/app/salinst.cxx
@@ -578,9 +578,10 @@ LRESULT CALLBACK SalComWndProc( HWND, UINT nMsg, WPARAM wParam, LPARAM lParam, b
case SAL_MSG_STARTTIMER:
{
+ auto const nParam = static_cast<sal_uInt64>( lParam );
sal_uInt64 nTime = tools::Time::GetSystemTicks();
- if ( nTime < static_cast<sal_uInt64>( lParam ) )
- nTime = static_cast<sal_uInt64>( lParam ) - nTime;
+ if ( nTime < nParam )
+ nTime = nParam - nTime;
else
nTime = 0;
assert( pTimer != nullptr );
More information about the Libreoffice-commits
mailing list