fix(query): avg sum operation check range

This commit is contained in:
Alex Duan 2022-12-15 14:52:53 +08:00
parent 500ee304a6
commit e9f7572a54
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@
}
// 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) { \
out->sum.dsum += val; \
} else if (UINT64_MAX - out->sum.usum <= val) { \