提交 e9f7572a 编写于 作者: A Alex Duan

fix(query): avg sum operation check range

上级 500ee304
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
} }
// define unsigned number sum with check overflow // define unsigned number sum with check overflow
#define CHECK_OVERFLOW_SUM_UNSIGNED (out, val) \ #define CHECK_OVERFLOW_SUM_UNSIGNED(out, val) \
if (out->sum.overflow) { \ if (out->sum.overflow) { \
out->sum.dsum += val; \ out->sum.dsum += val; \
} else if (UINT64_MAX - out->sum.usum <= val) { \ } else if (UINT64_MAX - out->sum.usum <= val) { \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册