Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Jul 10, 2024
1 parent fdf1b61 commit e0fe3e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crnlib/crn_packed_uint.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct packed_uint {
}

inline operator unsigned int() const {
CRNLIB_ASSUME(sizeof(m_buf) == N);
if (sizeof(m_buf) != N) return 0;
switch (N) {
case 1:
return m_buf[0];
Expand Down
2 changes: 1 addition & 1 deletion inc/crn_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ struct crn_packed_uint {
}

inline operator unsigned int() const {
static_assert(sizeof(m_buf) == N, "");
if (sizeof(m_buf) != N) return 0;
switch (N) {
case 1:
return m_buf[0];
Expand Down

0 comments on commit e0fe3e9

Please sign in to comment.