add -Wshorten-64-to-32 for share

This commit is contained in:
xuhuleon
2023-02-07 00:40:01 +08:00
committed by ob-robot
parent 822aaaf7f2
commit c157309bc6
168 changed files with 502 additions and 636 deletions

View File

@ -690,7 +690,7 @@ int ObOrderPerservingEncoder::encode_from_number(ObNumber val,
to++;
// digits encoding
int32_t digits_mask = (int64_t)((~se) ^ 0x80) >> 8;
int32_t digits_mask = static_cast<int32_t>((int64_t)((~se) ^ 0x80) >> 8);
uint32_t *digits_ptr = val.get_digits();
for (int64_t i = 0; i < desc.len_; i++) {
uint32_t dig = bswap_32((digits_ptr[i] + 1) ^ digits_mask);