MSVC compilation fixes

This commit is contained in:
dingusdev 2022-03-12 15:43:45 -07:00
parent 86bc91028d
commit 36fa53e8c1
2 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ void Sc53C94::exec_command()
exec_next_command();
break;
case CMD_SELECT_NO_ATN:
static SeqDesc sel_no_atn_desc[] {
static SeqDesc * sel_no_atn_desc = new SeqDesc[3]{
{SeqState::SEL_BEGIN, 0, INTSTAT_DIS },
{SeqState::CMD_BEGIN, 3, INTSTAT_SR | INTSTAT_SO},
{SeqState::CMD_COMPLETE, 4, INTSTAT_SR | INTSTAT_SO},

View File

@ -109,7 +109,7 @@ int create_pdm(std::string& id) {
bool write_flag = false;
if (!fd_write_prot.empty()) {
if ((fd_write_prot.compare("ON") == 0) or (fd_write_prot.compare("on") == 0)) {
if ((fd_write_prot.compare("ON") == 0) || (fd_write_prot.compare("on") == 0)) {
write_flag = true;
}
}