Skip to content

Commit

Permalink
fix /analyze warning
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Oct 31, 2024
1 parent 0565fee commit 6c5c258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UVAtlasTool/UVAtlas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
hr = inMesh->ComputeNormals(flags);
if (FAILED(hr))
{
wprintf(L"\nERROR: Failed computing normals (flags:%lX, %08X%ls)\n", flags,
wprintf(L"\nERROR: Failed computing normals (flags:%X, %08X%ls)\n", flags,

Check warning on line 1075 in UVAtlasTool/UVAtlas.cpp

View workflow job for this annotation

GitHub Actions / build (windows-2022, x64-Debug-VCPKG, amd64)

'wprintf' : format string '%X' requires an argument of type 'unsigned int', but variadic argument 1 has type 'DirectX::CNORM_FLAGS'

Check warning on line 1075 in UVAtlasTool/UVAtlas.cpp

View workflow job for this annotation

GitHub Actions / build (windows-2022, arm64-Debug-VCPKG, amd64_arm64)

'wprintf' : format string '%X' requires an argument of type 'unsigned int', but variadic argument 1 has type 'DirectX::CNORM_FLAGS'

Check warning on line 1075 in UVAtlasTool/UVAtlas.cpp

View workflow job for this annotation

GitHub Actions / build (windows-2019, x64-Debug-VCPKG, amd64)

'wprintf' : format string '%X' requires an argument of type 'unsigned int', but variadic argument 1 has type 'DirectX::CNORM_FLAGS'

Check warning on line 1075 in UVAtlasTool/UVAtlas.cpp

View workflow job for this annotation

GitHub Actions / build (windows-2022, x86-Debug-VCPKG, amd64_x86)

'wprintf' : format string '%X' requires an argument of type 'unsigned int', but variadic argument 1 has type 'DirectX::CNORM_FLAGS'
static_cast<unsigned int>(hr), GetErrorDesc(hr));
return 1;
}
Expand Down

0 comments on commit 6c5c258

Please sign in to comment.