Re: [PATCH] tabled: use LL to indicate 64-bit constant

2010-01-12 Thread Colin McCabe
util.c: In function ‘objid_init’: util.c:331: warning: integer constant is too large for ‘long’ type with [cmcc...@stargazer tabled]$ gcc --version gcc (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2) Now that I wrote a little test program, I can see that gcc handles the constant correctly. It still

Re: [PATCH] tabled: use LL to indicate 64-bit constant

2010-01-12 Thread Jeff Garzik
On 01/12/2010 01:25 PM, Colin McCabe wrote: util.c: In function ‘objid_init’: util.c:331: warning: integer constant is too large for ‘long’ type with [cmcc...@stargazer tabled]$ gcc --version gcc (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2) Now that I wrote a little test program, I can see that gcc

[PATCH] tabled: use LL to indicate 64-bit constant

2010-01-10 Thread Colin McCabe
All integer constants are squashed into ints (i.e. 32-bit) unless you specify otherwise. Signed-off-by: Colin McCabe cmcc...@alumni.cmu.edu --- server/util.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/server/util.c b/server/util.c index 3c15123..63a3acb 100644 ---