Skip to content

Commit

Permalink
regcomp: Save '&' instrs by casting to U8
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed Jul 24, 2021
1 parent 5dfff34 commit 1815692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion regcomp.c
Expand Up @@ -3511,7 +3511,7 @@ S_make_trie(pTHX_ RExC_state_t *pRExC_state, regnode *startbranch,
* sizeof(reg_trie_trans) );

{ /* Modify the program and insert the new TRIE node */
U8 nodetype =(U8)(flags & 0xFF);
U8 nodetype =(U8) flags;
char *str=NULL;

#ifdef DEBUGGING
Expand Down
2 changes: 1 addition & 1 deletion regcomp.h
Expand Up @@ -592,7 +592,7 @@ struct regnode_ssc {
* are cautioned about its shared nature */
#define ANYOF_SHARED_d_MATCHES_ALL_NON_UTF8_NON_ASCII_non_d_WARN_SUPER 0x80

#define ANYOF_FLAGS_ALL (0xff & ~0x10)
#define ANYOF_FLAGS_ALL ((U8) ~0x10)

#define ANYOF_LOCALE_FLAGS (ANYOFL_FOLD | ANYOF_MATCHES_POSIXL)

Expand Down

0 comments on commit 1815692

Please sign in to comment.