]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:util: Use PUSH_LE_(U16|U32) for S(I|S)VALS
authorAndreas Schneider <asn@samba.org>
Thu, 20 Dec 2018 10:57:08 +0000 (11:57 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 21 Feb 2020 02:09:33 +0000 (02:09 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/byteorder.h

index 16a46372ef68fc0ebec0025dabbdf2add414160c..6defa585b1387bb470dc96f9c884359ce7427b56 100644 (file)
@@ -103,8 +103,8 @@ it also defines lots of intermediate macros, just ignore those :-)
 #define IVALS(buf,pos) ((int32_t)IVAL(buf,pos))
 #define SSVAL(buf,pos,val) PUSH_LE_U16(buf, pos, val)
 #define SIVAL(buf,pos,val) PUSH_LE_U32(buf, pos, val)
-#define SSVALS(buf,pos,val) SSVALX((buf),(pos),((int16_t)(val)))
-#define SIVALS(buf,pos,val) SIVALX((buf),(pos),((int32_t)(val)))
+#define SSVALS(buf,pos,val) PUSH_LE_U16(buf, pos, val)
+#define SIVALS(buf,pos,val) PUSH_LE_U32(buf, pos, val)
 
 /* 64 bit macros */
 #define BVAL(p, ofs) (IVAL(p,ofs) | (((uint64_t)IVAL(p,(ofs)+4)) << 32))