diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-02-03 16:53:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-02-03 23:46:14 +0100 |
commit | e23f811c7d0f956467d359990298222cf8d2c26d (patch) | |
tree | 6f68f9b24ca684850f4718932e3cae53c1691ce2 /vcl/win/app/salinst.cxx | |
parent | 9aa2b6b7a91c17658e7fc14e11809f746dcd440f (diff) |
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@redhat.com>
Diffstat (limited to 'vcl/win/app/salinst.cxx')
-rw-r--r-- | vcl/win/app/salinst.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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 ); |