mirror of
https://github.com/openharmony/ark_runtime_core.git
synced 2026-07-19 21:23:32 -04:00
@@ -349,7 +349,7 @@ void Parser::ParseResetFunctionLabelsAndParams()
|
||||
|
||||
for (const auto &t : context_.function_arguments_lists) {
|
||||
curr_func_ = &(program_.function_table.at(t.first));
|
||||
curr_func_->regs_num = curr_func_->value_of_first_param + 1;
|
||||
curr_func_->regs_num = static_cast<size_t>(curr_func_->value_of_first_param + 1);
|
||||
|
||||
for (const auto &v : t.second) {
|
||||
if (!curr_func_->ins.empty() && curr_func_->ins.size() >= v.first &&
|
||||
|
||||
@@ -112,7 +112,8 @@ private:
|
||||
inline void GetWarning(const std::string &mess = "", Error::ErrorType err = Error::ErrorType::ERR_NONE,
|
||||
int8_t shift = 0, const std::string &add_mess = "")
|
||||
{
|
||||
war_.emplace_back(mess, line_stric_, err, add_mess, context_.tokens[context_.number - 1].bound_left + shift,
|
||||
war_.emplace_back(mess, line_stric_, err, add_mess,
|
||||
context_.tokens[context_.number - 1].bound_left + static_cast<size_t>(shift),
|
||||
context_.tokens[context_.number - 1].bound_right,
|
||||
context_.tokens[context_.number - 1].whole_line, Error::ErrorClass::WARNING);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user