Opened 5 months ago
#1641 new defect
Compilation error in VS2017 when RExt__HIGH_BIT_DEPTH_SUPPORT is set to 1
Reported by: | emora | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | VTM | Version: | VTM-23.0 |
Keywords: | Cc: | ksuehring, XiangLi, fbossen, jvet@… |
Description
The VS2017 compiler emits a warning which is considered as an error at line 480 in Quant.cpp when RExt_HIGH_BIT_DEPTH_SUPPORT is enabled in TypeDef.h
const Intermediate_Int iCoeffQ = (Intermediate_Int(clipQCoef) * scale) * (1 << leftShift);
The warning says: result of 32-bit shift implicitly converted to 64 bits
I would suggest the following to avoid the warning and be able to compile successfully
const Intermediate_Int iCoeffQ = (Intermediate_Int(clipQCoef) * scale) * (Intermediate_Int(1) << leftShift);
Note: See TracTickets for help on using tickets.