Skip to content

Commit d1f501c

Browse files
committed
Fix type for _oscap_pcre_opts_to_pcre
PCRE2 is expecting uint32_t, not int
1 parent 3acb5cc commit d1f501c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/oscap_pcre.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ struct oscap_pcre {
4343
};
4444

4545

46-
static inline int _oscap_pcre_opts_to_pcre(oscap_pcre_options_t opts)
46+
static inline uint32_t _oscap_pcre_opts_to_pcre(oscap_pcre_options_t opts)
4747
{
48-
int res = 0;
48+
uint32_t res = 0;
4949
if (opts & OSCAP_PCRE_OPTS_UTF8)
5050
res |= PCRE2_UTF;
5151
if (opts & OSCAP_PCRE_OPTS_MULTILINE)

0 commit comments

Comments
 (0)