Skip to content

Commit

Permalink
Default init tagged_pointer to zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgorking committed Mar 6, 2024
1 parent 9292262 commit 40562be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/ecs/detail/tagged_pointer.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ struct tagged_pointer {
constexpr static uintptr_t TagMask = sizeof(void*) - 1;
constexpr static uintptr_t PointerMask = ~TagMask;

uintptr_t ptr;
uintptr_t ptr = 0;
};

} // namespace ecs::detail
Expand Down
2 changes: 1 addition & 1 deletion include/ecs/ecs.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ private:
constexpr static uintptr_t TagMask = sizeof(void*) - 1;
constexpr static uintptr_t PointerMask = ~TagMask;

uintptr_t ptr;
uintptr_t ptr = 0;
};

} // namespace ecs::detail
Expand Down
2 changes: 1 addition & 1 deletion include/ecs/ecs_sh.h
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ struct tagged_pointer {
constexpr static uintptr_t TagMask = sizeof(void*) - 1;
constexpr static uintptr_t PointerMask = ~TagMask;

uintptr_t ptr;
uintptr_t ptr = 0;
};

} // namespace ecs::detail
Expand Down

0 comments on commit 40562be

Please sign in to comment.