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 <midawson@redhat.com>
PR-URL: #52142
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
mhdawson committed Mar 25, 2024
1 parent 6af4049 commit c43a944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/js2c.cc
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 c43a944

Please sign in to comment.