Skip to content

Commit

Permalink
Fix warning C4245
Browse files Browse the repository at this point in the history
  • Loading branch information
qubka committed Dec 24, 2024
1 parent 155b1d1 commit 030c3a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/gametrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ struct RnCollisionAttr_t
m_nInteractsWith = 0;
m_nInteractsExclude = 0;
m_nEntityId = 0;
m_nOwnerId = -1;
m_nOwnerId = static_cast<uint32>(-1);
m_nHierarchyId = 0;
m_nCollisionGroup = COLLISION_GROUP_ALWAYS;
m_nCollisionFunctionMask = FCOLLISION_FUNC_DEFAULT;
Expand Down
2 changes: 1 addition & 1 deletion public/vstdlib/IKeyValuesSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class KeyValues;
class HKeySymbol
{
public:
HKeySymbol() : nIndex(~0) { }
HKeySymbol() : nIndex(static_cast<uint32>(~0)) { }
HKeySymbol(uint32 idx) : nIndex(idx) { }

inline uint32 Get() { return nIndex; }
Expand Down

0 comments on commit 030c3a0

Please sign in to comment.