We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bfa908 commit 699fb9dCopy full SHA for 699fb9d
include/msg/field.hpp
@@ -215,7 +215,7 @@ struct bits_locator_t {
215
template <typename T> constexpr static auto extent_in() -> std::size_t {
216
constexpr auto msb = Lsb + BitSize - 1;
217
constexpr auto msb_extent = (msb + CHAR_BIT - 1) / CHAR_BIT;
218
- constexpr auto base_extent = Index * sizeof(std::uint32_t);
+ constexpr auto base_extent = Index * sizeof(T);
219
constexpr auto extent = base_extent + msb_extent;
220
return (extent + sizeof(T) - 1) / sizeof(T);
221
}
0 commit comments