DSPAssembler: Amend printf specifiers in ShowError

code_line is a u32.
This commit is contained in:
Lioncash 2017-01-25 17:13:36 -05:00
parent 992b7f7ac0
commit c2e3bd8d2f

View File

@ -93,18 +93,18 @@ void DSPAssembler::ShowError(err_t err_code, const char* extra_info)
if (!settings_.force) if (!settings_.force)
failed = true; failed = true;
std::string error = StringFromFormat("%i : %s ", code_line, cur_line.c_str()); std::string error = StringFromFormat("%u : %s ", code_line, cur_line.c_str());
if (!extra_info) if (!extra_info)
extra_info = "-"; extra_info = "-";
if (m_current_param == 0) if (m_current_param == 0)
{ {
error += error +=
StringFromFormat("ERROR: %s Line: %d : %s\n", err_string[err_code], code_line, extra_info); StringFromFormat("ERROR: %s Line: %u : %s\n", err_string[err_code], code_line, extra_info);
} }
else else
{ {
error += StringFromFormat("ERROR: %s Line: %d Param: %d : %s\n", err_string[err_code], error += StringFromFormat("ERROR: %s Line: %u Param: %d : %s\n", err_string[err_code],
code_line, m_current_param, extra_info); code_line, m_current_param, extra_info);
} }