projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
717296a
)
Avoid warning about integer overflow on Sun C compiler
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 10 Jan 2007 10:17:50 +0000
(10:17 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 10 Jan 2007 10:17:50 +0000
(10:17 +0000)
src/http_command.c
patch
|
blob
|
history
diff --git
a/src/http_command.c
b/src/http_command.c
index
d03387d
..
4598013
100644
(file)
--- 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 <stdio.h>
@@
-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;
}