diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-10-09 19:48:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-10-10 07:46:59 +0200 |
commit | 963255acd4cee20b861fe318667bfbb902e299af (patch) | |
tree | dbce33db9293c1f60e204cf0c516505454666946 /scaddins/source | |
parent | be091490b6701f729dc991271a036a96967d4f0a (diff) |
cid#1608078 Overflowed return value
Change-Id: If654c8c86b71fdf1179f9ea89d31bf6b530e5046
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174744
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scaddins/source')
-rw-r--r-- | scaddins/source/analysis/analysishelper.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx index 0fdae29ccd66..fdb5d4a7994a 100644 --- a/scaddins/source/analysis/analysishelper.hxx +++ b/scaddins/source/analysis/analysishelper.hxx @@ -580,6 +580,7 @@ inline sal_Int32 GetDiffDate360( const css::uno::Reference< css::beans::XPropert inline sal_Int16 GetDayOfWeek( sal_Int32 n ) { // monday = 0, ..., sunday = 6 + assert(n >= 0); return static_cast< sal_Int16 >( ( n - 1 ) % 7 ); } |