Skip to content

Commit 2132b12

Browse files
committed
dialog: fix possible overflow
1 parent 590a19f commit 2132b12

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)