We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 39d988a + 029b6a3 commit 0a5f2bdCopy full SHA for 0a5f2bd
sdk/src/sl_crc.cpp
@@ -74,7 +74,7 @@ namespace sl {namespace crc32 {
74
sl_u8 index;
75
sl_u8* pch;
76
pch = (unsigned char*)input;
77
- sl_u8 leftBytes = (4 - len) & 0x3;
+ sl_u8 leftBytes = 4 - (len & 0x3);
78
79
for (i = 0; i < len; i++) {
80
index = (unsigned char)(crc^*pch);
0 commit comments