editline: Avoid shifting a negative signed value.
authorAlexander Traud <pabstraud@compuserve.com>
Sat, 27 Jan 2018 14:54:24 +0000 (15:54 +0100)
committerAlexander Traud <pabstraud@compuserve.com>
Sat, 27 Jan 2018 14:54:24 +0000 (15:54 +0100)
clang 4.0 warned about this.

ASTERISK-27630

Change-Id: Ie2725048c661c1792d8b1d498575144350b6e9ba

main/editline/el.h

index 641081e..386d84c 100644 (file)
@@ -55,9 +55,9 @@
 
 #define        EL_BUFSIZ       1024            /* Maximum line size            */
 
-#define        HANDLE_SIGNALS  1<<0
-#define        NO_TTY          1<<1
-#define        EDIT_DISABLED   1<<2
+#define        HANDLE_SIGNALS  0x01
+#define        NO_TTY          0x02
+#define        EDIT_DISABLED   0x04
 
 typedef int bool_t;                    /* True or not                  */