From 05f588438551e3d4e3cab4c4e363a4496a531f31 Mon Sep 17 00:00:00 2001 From: Michael Gartsbein Date: Thu, 5 May 2016 11:40:13 +0300 Subject: [PATCH] add u to avoid undefined shl --- compiler/capnpc-c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/capnpc-c.c b/compiler/capnpc-c.c index 84f7e36..809cc81 100644 --- a/compiler/capnpc-c.c +++ b/compiler/capnpc-c.c @@ -449,7 +449,7 @@ static const char *xor_member(struct field *f) { return strf(&buf, " ^ %#xu", (uint32_t) f->v.intval); case Value_int64: - return strf(&buf, " ^ ((int64_t)((uint64_t) %#x << 32) ^ %#x)", + return strf(&buf, " ^ ((int64_t)((uint64_t) %#xu << 32) ^ %#xu)", (uint32_t) (f->v.intval >> 32), (uint32_t) f->v.intval); case Value_uint64: case Value_float64: