Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/msg/field.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ struct bits_locator_t {
template <typename T> constexpr static auto extent_in() -> std::size_t {
constexpr auto msb = Lsb + BitSize - 1;
constexpr auto msb_extent = (msb + CHAR_BIT - 1) / CHAR_BIT;
constexpr auto base_extent = Index * sizeof(std::uint32_t);
constexpr auto base_extent = Index * sizeof(T);
constexpr auto extent = base_extent + msb_extent;
return (extent + sizeof(T) - 1) / sizeof(T);
}
Expand Down
Loading