diff options
-rw-r--r-- | basic/source/comp/codegen.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/basic/source/comp/codegen.cxx b/basic/source/comp/codegen.cxx index 4c202edf8bba..f652b858e85e 100644 --- a/basic/source/comp/codegen.cxx +++ b/basic/source/comp/codegen.cxx @@ -478,7 +478,14 @@ public: T result = 0 ; static const S max = std::numeric_limits< S >::max(); result = m_nNumOp0 + ( ( sizeof(S) + 1 ) * m_nNumSingleParams ) + ( (( sizeof(S) * 2 )+ 1 ) * m_nNumDoubleParams ); +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning( disable : 4309) +#endif return std::min(static_cast<T>(max), result); +#ifdef _MSC_VER +#pragma warning(push) +#endif } virtual bool processParams() override { return false; } }; |