libiberty: fix warnings about left shifting a negative value.
[deliverable/binutils-gdb.git] / libiberty / regex.c
index 16338cb206b455d87d275e778d4590500c213216..9ffc3f47f006d89b7c046b704e7ac6cc0ae78d80 100644 (file)
@@ -685,7 +685,7 @@ typedef enum
 #  define EXTRACT_NUMBER(destination, source)                          \
   do {                                                                 \
     (destination) = *(source) & 0377;                                  \
-    (destination) += SIGN_EXTEND_CHAR (*((source) + 1)) << 8;          \
+    (destination) += ((unsigned) SIGN_EXTEND_CHAR (*((source) + 1))) << 8; \
   } while (0)
 # endif
 
This page took 0.022881 seconds and 4 git commands to generate.