Skip to content

Commit

Permalink
linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Jul 23, 2024
1 parent f64ca19 commit f13d849
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/rogue/interfaces/memory/Block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,11 @@ void rim::Block::intStartTransaction(uint32_t type, bool forceWr, bool check, ri
if (index < 0 || index >= var->numValues_) {
lowByte = var->lowTranByte_[0];

if ( var->numValues_ == 0 ) highByte = var->highTranByte_[0];
else highByte = var->highTranByte_[var->numValues_-1];
if ( var->numValues_ == 0 ) {
highByte = var->highTranByte_[0];
} else {
highByte = var->highTranByte_[var->numValues_-1];
}
} else {
lowByte = var->lowTranByte_[index];
highByte = var->highTranByte_[index];
Expand Down

0 comments on commit f13d849

Please sign in to comment.