From 7935df168f4e98e5d3da352ea555883b0be8bbd3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 11 Nov 2005 10:46:31 +0000 Subject: r11675: a more general way of getting rid of compiler warnings and errors metze (This used to be commit 653f5ccd61f2555bbd49b81c5cc660962b31aa68) --- source4/include/byteorder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/include') diff --git a/source4/include/byteorder.h b/source4/include/byteorder.h index d0402d0dcc..941dee9e88 100644 --- a/source4/include/byteorder.h +++ b/source4/include/byteorder.h @@ -218,7 +218,7 @@ static __inline__ void st_le32(uint32_t *addr, const uint32_t val) #define VWV(vwv) ((vwv)*2) /* 64 bit macros */ -#define SBVAL(p, ofs, v) (SIVAL(p,ofs,(v)&0xFFFFFFFF), SIVAL(p,(ofs)+4,(v)>>32)) +#define SBVAL(p, ofs, v) (SIVAL(p,ofs,(v)&0xFFFFFFFF), SIVAL(p,(ofs)+4,((uint64_t)(v))>>32)) #define BVAL(p, ofs) (IVAL(p,ofs) | (((uint64_t)IVAL(p,(ofs)+4)) << 32)) #endif /* _BYTEORDER_H */ -- cgit