summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-11 10:46:31 +0000
committerStefan Metzmacher <metze@samba.org>2005-11-11 10:46:31 +0000
commitc2e5e4cb886601cd2fcf53ad6933370b27dbb781 (patch)
treeb8194f0526544cb898cf0cc085c074573eb76d2d /source/include
parent240c4c08bf6a3a9268b03111b325873116e7b408 (diff)
downloadsamba-c2e5e4cb886601cd2fcf53ad6933370b27dbb781.tar.gz
samba-c2e5e4cb886601cd2fcf53ad6933370b27dbb781.tar.xz
samba-c2e5e4cb886601cd2fcf53ad6933370b27dbb781.zip
r11675: a more general way of getting rid of compiler warnings and errors
metze
Diffstat (limited to 'source/include')
-rw-r--r--source/include/byteorder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/include/byteorder.h b/source/include/byteorder.h
index d0402d0dcc0..941dee9e88f 100644
--- a/source/include/byteorder.h
+++ b/source/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 */