Skip to content

Commit 26dd150

Browse files
Merge pull request swiftlang#62670 from valeriyvan/incorrect-format
2 parents d77fa0b + 3e85cc4 commit 26dd150

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/runtime/EnvironmentVariables.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "swift/Runtime/EnvironmentVariables.h"
1919

2020
#include <string.h>
21+
#include <inttypes.h>
2122

2223
using namespace swift;
2324

@@ -115,7 +116,7 @@ static uint32_t parse_uint32_t(const char *name,
115116
}
116117
if (n > UINT32_MAX) {
117118
swift::warning(RuntimeErrorFlagNone,
118-
"Warning: %s=%s out of bounds, clamping to %d.\n",
119+
"Warning: %s=%s out of bounds, clamping to %" PRIu32 ".\n",
119120
name, value, UINT32_MAX);
120121
return UINT32_MAX;
121122
}

0 commit comments

Comments
 (0)