diff --git a/hw/xnest/xcb.c b/hw/xnest/xcb.c index 4afabb943..420b399e9 100644 --- a/hw/xnest/xcb.c +++ b/hw/xnest/xcb.c @@ -167,7 +167,7 @@ void xnest_set_command( for (i = 0, nbytes = 0; i < argc; i++) nbytes += strlen(argv[i]) + 1; - if (nbytes >= (2^16) - 1) + if (nbytes >= (1<<16) - 1) return; char *buf = calloc(1, nbytes+1); diff --git a/os/connection.c b/os/connection.c index aeb9baee1..64245af6b 100644 --- a/os/connection.c +++ b/os/connection.c @@ -120,7 +120,7 @@ SOFTWARE. #include "probes.h" #include "xdmcp.h" -#define MAX_CONNECTIONS (2^16) +#define MAX_CONNECTIONS (1<<16) struct ospoll *server_poll;