提交 7ef7a2d7 编写于 作者: V Vitaly Baranov

Disable ubsan error "outside the range of representable values" in bitSwapLastTwo.cpp

上级 d6eb5e0f
......@@ -10,7 +10,7 @@ struct BitSwapLastTwoImpl
{
using ResultType = UInt8;
static inline ResultType apply(A a)
static inline ResultType NO_SANITIZE_UNDEFINED apply(A a)
{
return static_cast<ResultType>(
((static_cast<ResultType>(a) & 1) << 1) | ((static_cast<ResultType>(a) >> 1) & 1));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册