Gerald Pfeifer : server: Replace 1 << 31 by 1u << 31 to avoid shift overflow in in get_active_hooks.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Sep 7 09:20:13 CDT 2015
Module: wine
Branch: master
Commit: 509d0f06cece4668a04f35f0ca6e924947673c31
URL: http://source.winehq.org/git/wine.git/?a=commit;h=509d0f06cece4668a04f35f0ca6e924947673c31
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Fri Sep 4 16:07:31 2015 +0200
server: Replace 1 << 31 by 1u << 31 to avoid shift overflow in in get_active_hooks.
---
server/hook.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/hook.c b/server/hook.c
index 3abd8d9..a8e6ab9 100644
--- a/server/hook.c
+++ b/server/hook.c
@@ -356,7 +356,7 @@ unsigned int get_active_hooks(void)
{
struct hook_table *table = get_queue_hooks( current );
struct hook_table *global_hooks = get_global_hooks( current );
- unsigned int ret = 1 << 31; /* set high bit to indicate that the bitmap is valid */
+ unsigned int ret = 1u << 31; /* set high bit to indicate that the bitmap is valid */
int id;
for (id = WH_MINHOOK; id <= WH_WINEVENT; id++)
More information about the wine-cvs
mailing list