Skip to content

Commit ae42930

Browse files
authored
Merge pull request #2046 from l2dy/tm
tm: type cast before shift to avoid overflow
2 parents f1f892b + eeaab52 commit ae42930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/tm/tm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ static int fixup_broute(void** param)
495495

496496
static int flag_fixup(void** param)
497497
{
498-
*param = (void*)(unsigned long int)((*(unsigned int*)*param)<<1);
498+
*param = (void*)((unsigned long int)(*(unsigned int*)*param)<<1);
499499
return 0;
500500
}
501501

0 commit comments

Comments
 (0)