re PR other/66827 (left shifts of negative value warnings due to C++14 switch)
PR 66827 * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left shifting. From-SVN: r231873
This commit is contained in:
parent
de4b6238e7
commit
f8e663301f
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue