Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Jul 6, 2024
1 parent c387d2a commit f7bbf3e
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 {
switch (sizeof(m_buf)) {
switch (sizeof(m_buf) / sizeof(m_buf[0])) {
case 1:
return m_buf[0];
case 2:
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 {
switch (sizeof(m_buf)) {
switch (sizeof(m_buf) / sizeof(m_buf[0])) {
case 1:
return m_buf[0];
case 2:
Expand Down

0 comments on commit f7bbf3e

Please sign in to comment.