diff options
Diffstat (limited to 'basic/source/inc/expr.hxx')
-rw-r--r-- | basic/source/inc/expr.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/inc/expr.hxx b/basic/source/inc/expr.hxx index cc1d82ac2347..0751e7de4c21 100644 --- a/basic/source/inc/expr.hxx +++ b/basic/source/inc/expr.hxx @@ -137,7 +137,7 @@ public: SbiSymDef* GetRealVar(); // last variable in x.y.z SbiExprNode* GetRealNode(); // last node in x.y.z const OUString& GetString() { return aStrVal; } - short GetNumber() { return (short)nVal; } + short GetNumber() { return static_cast<short>(nVal); } SbiExprList* GetParameters() { return aVar.pPar; } void Optimize(SbiParser*); // tree matching |