Skip to content

Commit

Permalink
Convert enums from unsigned long to uint32_t
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Oct 24, 2024
1 parent 279849d commit 7fdf597
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions DirectXMesh/DirectXMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ namespace DirectX
//---------------------------------------------------------------------------------
// Normals, Tangents, and Bi-Tangents Computation

enum CNORM_FLAGS : unsigned long
enum CNORM_FLAGS : uint32_t
{
CNORM_DEFAULT = 0x0,
// Default is to compute normals using weight-by-angle
Expand Down Expand Up @@ -316,7 +316,7 @@ namespace DirectX
//---------------------------------------------------------------------------------
// Mesh clean-up and validation

enum VALIDATE_FLAGS : unsigned long
enum VALIDATE_FLAGS : uint32_t
{
VALIDATE_DEFAULT = 0x0,

Expand Down Expand Up @@ -549,7 +549,7 @@ namespace DirectX
constexpr size_t MESHLET_MINIMUM_SIZE = 32u;
constexpr size_t MESHLET_MAXIMUM_SIZE = 256u;

enum MESHLET_FLAGS : unsigned long
enum MESHLET_FLAGS : uint32_t
{
MESHLET_DEFAULT = 0x0,

Expand Down
2 changes: 1 addition & 1 deletion Meshconvert/Meshconvert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,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",
wprintf(L"\nERROR: Failed computing normals (flags:%X, %08X%ls)\n",
flags, static_cast<unsigned int>(hr), GetErrorDesc(hr));
return 1;
}
Expand Down

0 comments on commit 7fdf597

Please sign in to comment.