diff options
author | Andreas Schneider <asn@samba.org> | 2018-12-20 11:57:08 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2020-02-21 02:09:33 +0000 |
commit | c3b627f476fa1980bb4453233ce6cd5a2f53a78b (patch) | |
tree | efde34540b08ecb18ece69ae3929afb1135d912a | |
parent | 656d293a922781413265553e0cceb19e01c3cf66 (diff) | |
download | samba-c3b627f476fa1980bb4453233ce6cd5a2f53a78b.tar.gz |
lib:util: Use PUSH_LE_(U16|U32) for S(I|S)VALS
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r-- | lib/util/byteorder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/byteorder.h b/lib/util/byteorder.h index 16a46372ef6..6defa585b13 100644 --- a/lib/util/byteorder.h +++ b/lib/util/byteorder.h @@ -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)) |