Skip to content

Commit

Permalink
Merge pull request #2538 from zufuliu/fix-gcc-clang-format-warning
Browse files Browse the repository at this point in the history
Fix Windows GCC and Clang format warning for `DWORD`.
  • Loading branch information
jhasse authored Dec 5, 2024
2 parents d79d8f7 + 0f03352 commit d344479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ string GetLastErrorString() {

if (msg_buf == nullptr) {
char fallback_msg[128] = {0};
snprintf(fallback_msg, sizeof(fallback_msg), "GetLastError() = %d", err);
snprintf(fallback_msg, sizeof(fallback_msg), "GetLastError() = %lu", err);
return fallback_msg;
}

Expand Down

0 comments on commit d344479

Please sign in to comment.