Skip to content

Commit b595f3b

Browse files
authored
Correct type (int) for printf width specifier (#562)
Fixes: #550
1 parent 8a4618a commit b595f3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

windows/hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ static void register_winapi_error_to_buffer(wchar_t **error_buffer, const WCHAR
264264
if (!msg)
265265
return;
266266

267-
int printf_written = swprintf(msg, msg_len + 1, L"%.*ls: (0x%08X) %.*ls", op_len, op, error_code, system_err_len, system_err_buf);
267+
int printf_written = swprintf(msg, msg_len + 1, L"%.*ls: (0x%08X) %.*ls", (int)op_len, op, error_code, (int)system_err_len, system_err_buf);
268268

269269
if (printf_written < 0)
270270
{

0 commit comments

Comments
 (0)