Skip to content

Commit

Permalink
Bugfix:logical error
Browse files Browse the repository at this point in the history
  • Loading branch information
deyouslamtec committed Aug 9, 2023
2 parents 39d988a + 029b6a3 commit d7ee674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/sl_crc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ namespace sl {namespace crc32 {
sl_u8 index;
sl_u8* pch;
pch = (unsigned char*)input;
sl_u8 leftBytes = (4 - len) & 0x3;
sl_u8 leftBytes = 4 - (len & 0x3);

for (i = 0; i < len; i++) {
index = (unsigned char)(crc^*pch);
Expand Down

0 comments on commit d7ee674

Please sign in to comment.