We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c387d2a commit f7bbf3eCopy full SHA for f7bbf3e
crnlib/crn_packed_uint.h
@@ -39,7 +39,7 @@ struct packed_uint {
39
}
40
41
inline operator unsigned int() const {
42
- switch (sizeof(m_buf)) {
+ switch (sizeof(m_buf) / sizeof(m_buf[0])) {
43
case 1:
44
return m_buf[0];
45
case 2:
inc/crn_defs.h
@@ -225,7 +225,7 @@ struct crn_packed_uint {
225
226
227
228
229
230
231
0 commit comments