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

@ -3597,7 +3597,7 @@ int ObNumber::get_npi_(double n, ObNumber& out, ObIAllocator &alloc, const bool
const int64_t MAX_DOUBLE_PRINT_SIZE = 512;
char buf[MAX_DOUBLE_PRINT_SIZE] = {0};
(void)ob_gcvt_opt(n, OB_GCVT_ARG_DOUBLE, sizeof(buf) - 1, buf, NULL, lib::is_oracle_mode(), TRUE);
(void)ob_gcvt_opt(n, OB_GCVT_ARG_DOUBLE, static_cast<int32_t>(sizeof(buf) - 1), buf, NULL, lib::is_oracle_mode(), TRUE);
ObNumber n_obnum;
ObNumber pi = get_pi();