Skip to content

Commit

Permalink
tools: fix error reported by coverity in js2c.cc
Browse files Browse the repository at this point in the history
Coverity reported using the wrong argument types
to printf

Signed-off-by: Michael Dawson <[email protected]>
  • Loading branch information
mhdawson committed Mar 18, 2024
1 parent 4ba9f45 commit 5f91bbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/js2c.cc
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,8 @@ bool Simplify(const std::vector<char>& code,
}

if (simplified_count > 0) {
Debug("Simplified %d characters, ", simplified_count);
Debug("old size %d, new size %d\n", code_size, simplified->size());
Debug("Simplified %lu characters, ", simplified_count);
Debug("old size %lu, new size %lu\n", code_size, simplified->size());
return true;
}
return false;
Expand Down

0 comments on commit 5f91bbe

Please sign in to comment.