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

@ -37,7 +37,7 @@ namespace oceanbase
namespace lib
{
int get_max_thread_num() {
return 0 == GCONF._ob_max_thread_num ? INT32_MAX : GCONF._ob_max_thread_num;
return 0 == GCONF._ob_max_thread_num ? INT32_MAX : static_cast<int32_t>(GCONF._ob_max_thread_num);
}
}