vcl/unx/generic/app/saldisp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 15c857608bfe1aa068bb3562b27f321bae15de61 Author: Noel Grandin <[email protected]> AuthorDate: Thu Aug 21 09:38:33 2025 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Thu Aug 21 11:43:46 2025 +0200 ubsan in SalDisplay::initScreen runtime error: shift exponent 32 is too large for 32-bit type 'int' probably after commit 943814bf72181b3592e58d64ffa07358633d9ee7 Author: Noel Grandin <[email protected]> Date: Sat Aug 16 18:19:35 2025 +0200 fix gen backend under 'make vcl.check' this only triggers when running LO using the gen backend Change-Id: Ib41327b1f45e833a352c2e4d1548965357648050 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189982 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx index 2945c9cd7cf0..0fdfaceb60eb 100644 --- a/vcl/unx/generic/app/saldisp.cxx +++ b/vcl/unx/generic/app/saldisp.cxx @@ -419,7 +419,7 @@ SalDisplay::initScreen( SalX11Screen nXScreen ) const XGCValues values; values.graphics_exposures = False; values.fill_style = FillOpaqueStippled; - values.background = (1<<pSD->m_aVisual.GetDepth())-1; + values.background = (sal_Int64(1) << pSD->m_aVisual.GetDepth()) - 1; values.foreground = 0; pSD->m_aCopyGC = XCreateGC( pDisp_, @@ -2320,7 +2320,7 @@ SalColormap::SalColormap( const SalDisplay *pDisplay, Colormap hColormap, GetXPixel( aColor, 0xFF, 0xFF, 0xFF ); m_nWhitePixel = aColor.pixel; - m_nUsed = 1 << m_aVisual.GetDepth(); + m_nUsed = sal_Int64(1) << m_aVisual.GetDepth(); if( m_aVisual.GetClass() != PseudoColor ) return;
