Skip to content

Commit 0a5f2bd

Browse files
committed
Bugfix:ligical error
2 parents 39d988a + 029b6a3 commit 0a5f2bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/src/sl_crc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ namespace sl {namespace crc32 {
7474
sl_u8 index;
7575
sl_u8* pch;
7676
pch = (unsigned char*)input;
77-
sl_u8 leftBytes = (4 - len) & 0x3;
77+
sl_u8 leftBytes = 4 - (len & 0x3);
7878

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

0 commit comments

Comments
 (0)