diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-11-09 20:41:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-11-11 11:15:19 +0100 |
commit | 8bf5fa407e00f0a5c271a6e3d7b91330797c2726 (patch) | |
tree | 190f0a40e51080ea8483550cddec5f93292482cd /sd | |
parent | 09c0f1cfa63045c9ecdc9ed9190c26ef4acec865 (diff) |
cid#1607838 silence Overflowed constant
Change-Id: I4201afc8ee115200f47de4e7b7974f82735a1f01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176380
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/unoidl/unopage.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index c3d60bd59daf..8183d6cfbfe6 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -2306,7 +2306,7 @@ void SAL_CALL SdDrawPage::setName( const OUString& rName ) GetPage()->SetName( aName ); - sal_uInt16 nNotesPageNum = (GetPage()->GetPageNum()-1)>>1; + sal_uInt16 nNotesPageNum = static_cast<sal_uInt16>( ( GetPage()->GetPageNum() - 1 ) >> 1 ); if( GetModel()->GetDoc()->GetSdPageCount( PageKind::Notes ) > nNotesPageNum ) { SdPage* pNotesPage = GetModel()->GetDoc()->GetSdPage( nNotesPageNum, PageKind::Notes ); |