Skip to content

Commit

Permalink
detect: fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DankRank committed Aug 29, 2023
1 parent 28f8eb2 commit e9ebeaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thtk/detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ thdat_detect_iter(
uint32_t v = out[i];
int j=0;
for(;!(v&1);v>>=1, j++);
out[i] &= -1u << (j+1);
out[i] &= ~0u << (j+1);
int entry_num = i*32 + j;
if(entry_num >= DETECT_ENTRIES) { /* non-existent entry */
out[0]=out[1]=out[2]=out[3] = 0;
Expand Down

0 comments on commit e9ebeaf

Please sign in to comment.