vcl/win/app/salinst.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit e23f811c7d0f956467d359990298222cf8d2c26d Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Feb 3 16:53:26 2020 +0100 Commit: Stephan Bergmann <sberg...@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 <sberg...@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 ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits