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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Colin McCabe <cmccabe@xxxxxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux