summaryrefslogtreecommitdiff
path: root/sc/inc/chartpos.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/inc/chartpos.hxx')
-rw-r--r--sc/inc/chartpos.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/inc/chartpos.hxx b/sc/inc/chartpos.hxx
index 8666919df0fa..db699ef2e062 100644
--- a/sc/inc/chartpos.hxx
+++ b/sc/inc/chartpos.hxx
@@ -61,7 +61,7 @@ public:
{ return nCol < nColCount && nRow < nRowCount; }
// data column by column
sal_uLong GetIndex( SCCOL nCol, SCROW nRow ) const
- { return (sal_uLong) nCol * nRowCount + nRow; }
+ { return static_cast<sal_uLong>(nCol) * nRowCount + nRow; }
const ScAddress* GetPosition( sal_uLong nIndex ) const
{