From 0900da0f443362be1efd1a59d2aae7c227487099 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 10 Jan 2007 10:17:50 +0000 Subject: [PATCH] Avoid warning about integer overflow on Sun C compiler --- src/http_command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http_command.c b/src/http_command.c index d03387d..4598013 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -1,5 +1,5 @@ /* - * $Id: http_command.c,v 1.15 2007-01-09 22:27:10 quinn Exp $ + * $Id: http_command.c,v 1.16 2007-01-10 10:17:50 adam Exp $ */ #include @@ -99,7 +99,7 @@ unsigned int make_sessionid() if (gettimeofday(&t, 0) < 0) abort(); res = t.tv_sec; - res = ((res << 8) | (seq & 0xff)) & ((unsigned int) (1 << 31) - 1); + res = ((res << 8) | (seq & 0xff)) & ((1U << 31) - 1); return res; } -- 1.7.10.4