Skip to content

Commit b64d072

Browse files
authored
Merge pull request #2047 from l2dy/dialog
dialog: fix possible overflow
2 parents ae42930 + 2132b12 commit b64d072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/dialog/dialog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ static int fixup_dlg_flag(void** param)
525525
return E_CFG;
526526
}
527527

528-
*param=(void *)(unsigned long)(1<<val);
528+
*param=(void *)(1UL<<val);
529529
return 0;
530530
}
531531

0 commit comments

Comments
 (0)