Skip to content

Commit

Permalink
fix: PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
delehef committed Dec 8, 2023
1 parent 10dc524 commit 9ea0220
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void tracePreOpcode(MessageFrame frame) {
return;
}

Bytes input = frame.shadowReadMemory(offset, length);
final Bytes input = frame.shadowReadMemory(offset, length);

this.operations.add(
EcDataOperation.of(
Expand All @@ -108,7 +108,11 @@ public void tracePreOpcode(MessageFrame frame) {

@Override
public int lineCount() {
return this.operations.stream().mapToInt(EcDataOperation::nRows).sum();
int sum = 0;
for (EcDataOperation op : this.operations) {
sum += op.nRows();
}
return sum;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ private EcDataOperation(
this.extArg3 = repeat(Bytes.EMPTY, nRows);
this.extInst = repeat(OpCode.INVALID, nRows);
this.extRes = repeat(Bytes.EMPTY, nRows);
;

this.wcp = wcp;
this.ext = ext;
Expand Down

0 comments on commit 9ea0220

Please sign in to comment.