提交 b610afe7 编写于 作者: A Alexey Milovidov

Another fix

上级 f9b93e96
......@@ -1069,11 +1069,11 @@ public:
}
template <typename DateOrTime>
inline LUTIndex addMonthsIndex(DateOrTime v, Int64 delta) const
inline LUTIndex NO_SANITIZE_UNDEFINED addMonthsIndex(DateOrTime v, Int64 delta) const
{
const Values & values = lut[toLUTIndex(v)];
Int64 month = values.month + static_cast<UInt64>(delta); /// Cast is to avoid UB in signed integer overflow.
Int64 month = values.month + delta;
if (month > 0)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册