summaryrefslogtreecommitdiff
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
commit04965086711e9f794f0a0bcbfa0fd230e20b0cbe (patch)
tree49c9cdf31a2b0b0212d89f4174e3083f70e9fd7f
parent56b1252ebc89d2b4ac54c3ee7e3c4bc3c3ec5d0f (diff)
downloadsamba-04965086711e9f794f0a0bcbfa0fd230e20b0cbe.tar.gz
Added requested cast for splint.
Jeremy.
-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 719b3e9b447..1abf1854f36 100644
--- a/source/include/byteorder.h
+++ b/source/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))