summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-01 22:02:53 +0000
committerJeremy Allison <jra@samba.org>2002-03-01 22:02:53 +0000
commitc8e924c7a30f53765b9da29fd935f0afe5a54b9f (patch)
tree3ed661a3c30ca32bc62a2cb53b75d047a0098a7b /source3/include
parent3afe4729a23d9f9d0b080486c44846712b54ecf5 (diff)
downloadsamba-c8e924c7a30f53765b9da29fd935f0afe5a54b9f.tar.gz
samba-c8e924c7a30f53765b9da29fd935f0afe5a54b9f.tar.bz2
samba-c8e924c7a30f53765b9da29fd935f0afe5a54b9f.zip
Added requested cast for splint.
Jeremy. (This used to be commit 04965086711e9f794f0a0bcbfa0fd230e20b0cbe)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/byteorder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/byteorder.h b/source3/include/byteorder.h
index 719b3e9b44..1abf1854f3 100644
--- a/source3/include/byteorder.h
+++ b/source3/include/byteorder.h
@@ -116,7 +116,7 @@ it also defines lots of intermediate macros, just ignore those :-)
#define SVAL(buf,pos) (PVAL(buf,pos)|PVAL(buf,(pos)+1)<<8)
#define IVAL(buf,pos) (SVAL(buf,pos)|SVAL(buf,(pos)+2)<<16)
-#define SSVALX(buf,pos,val) (CVAL_NC(buf,pos)=(val)&0xFF,CVAL_NC(buf,pos+1)=(val)>>8)
+#define SSVALX(buf,pos,val) (CVAL_NC(buf,pos)=(unsigned char)((val)&0xFF),CVAL_NC(buf,pos+1)=(unsigned char)((val)>>8))
#define SIVALX(buf,pos,val) (SSVALX(buf,pos,val&0xFFFF),SSVALX(buf,pos+2,val>>16))
#define SVALS(buf,pos) ((const int16)SVAL(buf,pos))
#define IVALS(buf,pos) ((const int32)IVAL(buf,pos))