Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
manyuanrong committed Feb 24, 2019
1 parent e0d1454 commit 22e90b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function format(data: ArrayBufferView) {
out += " +-------------------------------------------------+\n";
out += ` |${green(" 0 1 2 3 4 5 6 7 8 9 a b c d e f ")}|\n`;
out += "+--------+-------------------------------------------------+----------------+\n";
const lineCount = Math.round(bytes.length / 16);
const lineCount = Math.ceil(bytes.length / 16);
for (let line = 0; line < lineCount; line++) {
const start = line * 16;
const addr = start.toString(16).padStart(8, "0");
Expand Down

0 comments on commit 22e90b1

Please sign in to comment.