diff --git a/acl.c b/acl.c
index ea45af83802c477db123c7ec56b456395826e596..38ac1666c4a38eca2116a4982b6d91ddaacd7494 100755
--- a/acl.c
+++ b/acl.c
@@ -93,7 +93,7 @@ struct ast_ha *ast_append_ha(char *sense, char *stuff, struct ast_ha *path)
 				y = 0;
 				for (z=0;z<x;z++) {
 					y >>= 1;
-					y |= 0x8000000;
+					y |= 0x80000000;
 				}
 				ha->netmask.s_addr = htonl(y);
 			}