diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2018-02-19 22:57:03 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2018-02-19 22:57:03 +0000 |
commit | 334a53860c402b9e73d38c6b47933be4abb6bd2f (patch) | |
tree | b5df8410bf2c126cbfcc3fb3de33bfaba6f5b145 /include | |
parent | 29a685dd2cb528a1ca119f6b32cafd551379f439 (diff) |
Need to use 1U << 31 to keep C++ compilers happy (thanks jamessan)
Diffstat (limited to 'include')
-rw-r--r-- | include/vterm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vterm.h b/include/vterm.h index 611e2a1..a0d45d7 100644 --- a/include/vterm.h +++ b/include/vterm.h @@ -175,8 +175,8 @@ void vterm_mouse_button(VTerm *vt, int button, bool pressed, VTermModifier mod); * * Don't confuse this with the final byte of the CSI escape; 'a' in this case. */ -#define CSI_ARG_FLAG_MORE (1<<31) -#define CSI_ARG_MASK (~(1<<31)) +#define CSI_ARG_FLAG_MORE (1U<<31) +#define CSI_ARG_MASK (~(1U<<31)) #define CSI_ARG_HAS_MORE(a) ((a) & CSI_ARG_FLAG_MORE) #define CSI_ARG(a) ((a) & CSI_ARG_MASK) |