All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tabled: use LL to indicate 64-bit constant
@ 2010-01-10 13:10 Colin McCabe
  2010-01-12  2:51 ` Jeff Garzik
  2010-01-12 14:29 ` Jeff Garzik
  0 siblings, 2 replies; 6+ messages in thread
From: Colin McCabe @ 2010-01-10 13:10 UTC (permalink / raw)
  To: Project Hail List; +Cc: Pete Zaitcev, Jeff Garzik, Colin McCabe

All integer constants are squashed into ints (i.e. 32-bit) unless you specify
otherwise.

Signed-off-by: Colin McCabe <cmccabe@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
--- a/server/util.c
+++ b/server/util.c
@@ -328,7 +328,7 @@ int objid_init(uint64_t *obj_count, struct tabledb *tdbp)
 		exit(1);	/* Quit before something unknown blows up. */
 	}
 
-	if (objcount & 0xff00000000000000) {
+	if (objcount & 0xff00000000000000ll) {
 		applog(LOG_ERR, "Dangerous objid %llX\n",
 		       (unsigned long long) objcount);
 		return -1;
-- 
1.6.2.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-01-12 19:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-10 13:10 [PATCH] tabled: use LL to indicate 64-bit constant Colin McCabe
2010-01-12  2:51 ` Jeff Garzik
2010-01-12 14:29 ` Jeff Garzik
2010-01-12 18:25   ` Colin McCabe
2010-01-12 19:24     ` Jeff Garzik
2010-01-12 19:57       ` Colin McCabe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.