Skip to content

Commit 9ca30b5

Browse files
committed
change regexp_interal attribute from I32 to U32
This changes the name_list_idx attribute from I32 to a U32 as it will never be negative, and as of a963d6d a 0 can be safely used to represent "no value" for items in the 'data' array.
1 parent edb8b02 commit 9ca30b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pod/perlreguts.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ value to other engine implementations.
832832
struct reg_data *data;
833833
struct reg_code_blocks *code_blocks;
834834
U32 proglen;
835-
int name_list_idx;
835+
U32 name_list_idx;
836836
regnode program[1];
837837
} regexp_internal;
838838

regcomp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ typedef struct regexp_internal {
7171
strictly reserved for internal purposes. */
7272
struct reg_code_blocks *code_blocks;/* positions of literal (?{}) */
7373
U32 proglen; /* size of the compiled program in regnodes */
74-
int name_list_idx; /* Optional data index of an array of paren names */
74+
U32 name_list_idx; /* Optional data index of an array of paren names */
7575
regnode program[1]; /* Unwarranted chumminess with compiler. */
7676
} regexp_internal;
7777

0 commit comments

Comments
 (0)