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

@ -570,7 +570,7 @@ int ObExprSysContext::eval_lang(const ObExpr &expr, common::ObDatum &res,
for (int64_t i = 0; !found && i < ARRAYSIZEOF(lang_map_); ++i) {
if (0 == language.get_string().case_compare(lang_map_[i].language)) {
found = true;
abbreviated.assign(lang_map_[i].abbreviated, strlen(lang_map_[i].abbreviated));
abbreviated.assign(lang_map_[i].abbreviated, static_cast<int32_t>(strlen(lang_map_[i].abbreviated)));
}
}
if (!found) {