diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-05-05 20:16:31 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-05-06 18:03:16 -0400 |
commit | 5ee9a5d2de4e50552e50247e745f92b61f9784c0 (patch) | |
tree | c366fd2782abc1001845f9a223f3cfe2bd080668 /include | |
parent | c9f5ccd2e6c301853ebf1595ca12b377a991a095 (diff) | |
download | xorg-lib-libXt-5ee9a5d2de4e50552e50247e745f92b61f9784c0.tar.gz |
fix gcc warnings when assigning into a bit-field by first masking the value
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/X11/IntrinsicI.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/X11/IntrinsicI.h b/include/X11/IntrinsicI.h index 6369aff..d477c1d 100644 --- a/include/X11/IntrinsicI.h +++ b/include/X11/IntrinsicI.h @@ -101,6 +101,14 @@ SOFTWARE. /**************************************************************** * + * Bit utilities + * + ****************************************************************/ +#define XtSetBits(dst,src,len) dst = (((1U << (len)) - 1) & (unsigned)(src)) +#define XtSetBit(dst,src) XtSetBits(dst,src,1) + +/**************************************************************** + * * Byte utilities * ****************************************************************/ |