Skip to content

Commit 8b5b6c6

Browse files
authored
[ClangCL] fix x86 only warning (microsoft#6504)
SIZE_T is unsigned long for x86 while size_t is unsigned int for x86. Cast SIZE_T to size_t to avoid integer mismatch warning.
1 parent 14ec4b4 commit 8b5b6c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/clang/tools/dxa/dxa.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ bool DxaContext::ExtractPart(const char *pName) {
303303

304304
WriteBlobToFile(pContent, StringRefWide(OutputFilename),
305305
DXC_CP_UTF8); // TODO: Support DefaultTextCodePage
306-
printf("%zu bytes written to %s\n", pContent->GetBufferSize(),
306+
printf("%zu bytes written to %s\n", (size_t)pContent->GetBufferSize(),
307307
OutputFilename.c_str());
308308
return true;
309309
}

0 commit comments

Comments
 (0)