Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
hbjs.cc:173:31: warning: format specifies type 'int' but the argument has type 'unsigned int' [-Wformat]
  • Loading branch information
khaledhosny committed Jul 4, 2024
1 parent c1b0585 commit d6e3e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hbjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static hb_bool_t do_trace (hb_buffer_t *buffer,
if (user_data->stop_phase != HB_SHAPE_DONT_STOP) {
// Do we need to start stopping?
char buf[12];
snprintf (buf, 12, "%d ", user_data->stop_at);
snprintf (buf, 12, "%u ", user_data->stop_at);
if ((user_data->current_phase == user_data->stop_phase) &&
(strncmp(message, "end lookup ", 11) == 0) &&
(strncmp(message + 11, buf, strlen(buf)) == 0)) {
Expand Down

0 comments on commit d6e3e25

Please sign in to comment.