PR 66827
	* regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left
	shifting.
From-SVN: r231873
+2015-12-21  Nick Clifton  <nickc@redhat.com>
+
+       PR 66827
+       * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left
+       shifting.
+
 2015-11-27  Pedro Alves  <palves@redhat.com>
 
        PR other/61321
 
 #  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