mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 09:49:19 +02:00
refactor(sonar): make narrowing conversions explicit (cpp:S5276)
This commit is contained in:
@@ -141,7 +141,7 @@ basic_controller::deserialize_operation( cParser &Input ) -> bool {
|
||||
auto const lookup { m_operationcodemap.find( operationname ) };
|
||||
operation.code = lookup != m_operationcodemap.end() ? lookup->second : opcode_e::op_nop;
|
||||
if( lookup == m_operationcodemap.end() ) {
|
||||
log_error( "contains unknown command \"" + operationname + "\"", Input.Line() - 1 );
|
||||
log_error( "contains unknown command \"" + operationname + "\"", static_cast<int>(Input.Line() - 1) );
|
||||
}
|
||||
|
||||
if( operation.code == opcode_e::op_nop ) { return true; }
|
||||
|
||||
Reference in New Issue
Block a user