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

@ -1126,7 +1126,7 @@ public:
int check_and_get_same_rowid_expr(const ObRawExpr *expr, ObRawExpr *&same_rowid_expr);
int add_cte_definition(TableItem * table_item) { return cte_definitions_.push_back(table_item); }
int get_cte_definition_size() const { return cte_definitions_.count(); }
int64_t get_cte_definition_size() const { return cte_definitions_.count(); }
common::ObIArray<TableItem *>& get_cte_definitions() { return cte_definitions_; }
const common::ObIArray<TableItem *>& get_cte_definitions() const { return cte_definitions_; }

View File

@ -79,7 +79,7 @@ public:
void add_scope(DmlStmtScope scope)
{
flags_ = (flags_ | (1L << scope));
flags_ = static_cast<uint32_t>((flags_ | (1L << scope)));
}
void add_scope(const ObIArray<DmlStmtScope> &scopes);
@ -218,4 +218,4 @@ private:
}
}
#endif // OB_STMT_EXPR_VISITOR_H
#endif // OB_STMT_EXPR_VISITOR_H