From 5dbcea700e212b3fc541ad19b0962e7a222f7943 Mon Sep 17 00:00:00 2001 From: Charles Forsyth Date: Wed, 11 Mar 2020 16:22:45 +0000 Subject: [PATCH] avoid ANSI C misfeature --- fcall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fcall.h b/fcall.h index 4a0d6f2..d8ca20e 100644 --- a/fcall.h +++ b/fcall.h @@ -48,7 +48,7 @@ struct Fcall #define GBIT8(p) ((p)[0]) #define GBIT16(p) ((p)[0]|((p)[1]<<8)) #define GBIT32(p) ((p)[0]|((p)[1]<<8)|((p)[2]<<16)|((p)[3]<<24)) -#define GBIT64(p) ((ulong)((p)[0]|((p)[1]<<8)|((p)[2]<<16)|((p)[3]<<24)) |\ +#define GBIT64(p) ((u32int)((p)[0]|((p)[1]<<8)|((p)[2]<<16)|((p)[3]<<24)) |\ ((vlong)((p)[4]|((p)[5]<<8)|((p)[6]<<16)|((p)[7]<<24)) << 32)) #define PBIT8(p,v) (p)[0]=(v)