diff --git a/source/Lib/CommonLib/TrQuant.cpp b/source/Lib/CommonLib/TrQuant.cpp index d633033d47e0142f0020896cdfae90a50455bb5e..3206bef3e636f83a3d0f3fbb77490721d831500a 100644 --- a/source/Lib/CommonLib/TrQuant.cpp +++ b/source/Lib/CommonLib/TrQuant.cpp @@ -84,7 +84,7 @@ InvTrans *fastInvTrans[NUM_TRANS_TYPE][g_numTransformMatrixSizes] = //! \{ #if JVET_O0105_ICT -int64_t square( int d ) { return d*d; } +static inline int64_t square( const int d ) { return d * (int64_t)d; } template std::pair fwdTransformCbCr( const PelBuf &resCb, const PelBuf &resCr, PelBuf& resC1, PelBuf& resC2 ) {