Skip to content

Commit

Permalink
toosl: 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>
  • Loading branch information
mhdawson committed Mar 18, 2024
1 parent 4ba9f45 commit bc50afd
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 bc50afd

Please sign in to comment.