summaryrefslogtreecommitdiff
path: root/source4/include/byteorder.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/include/byteorder.h')
-rw-r--r--source4/include/byteorder.h2
1 files changed, 1 insertions, 1 deletions
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 */