Skip to content

Commit 807addf

Browse files
author
jan.nijtmans
committed
Eliminate compiler warning (only seen in DEBUG)
1 parent 5baf741 commit 807addf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

generic/regc_nfa.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -928,11 +928,11 @@ mergeins(
928928
struct nfa * nfa,
929929
struct state * s,
930930
struct arc ** arcarray,
931-
int arccount)
931+
size_t arccount)
932932
{
933933
struct arc *na;
934-
int i;
935-
int j;
934+
size_t i;
935+
size_t j;
936936

937937
if (arccount <= 0) {
938938
return;
@@ -1875,7 +1875,7 @@ fixempties(
18751875
size_t totalinarcs;
18761876
struct arc **inarcsorig;
18771877
struct arc **arcarray;
1878-
int arccount;
1878+
size_t arccount;
18791879
size_t prevnins;
18801880
size_t nskip;
18811881

generic/regcomp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static void sortouts(struct nfa *, struct state *);
128128
static int sortouts_cmp(const void *, const void *);
129129
static void moveins(struct nfa *, struct state *, struct state *);
130130
static void copyins(struct nfa *, struct state *, struct state *);
131-
static void mergeins(struct nfa *, struct state *, struct arc **, int);
131+
static void mergeins(struct nfa *, struct state *, struct arc **, size_t);
132132
static void moveouts(struct nfa *, struct state *, struct state *);
133133
static void copyouts(struct nfa *, struct state *, struct state *);
134134
static void cloneouts(struct nfa *, struct state *, struct state *, struct state *, int);

0 commit comments

Comments
 (0)