From f8c389bc3c8dc0a99d16bf566643744e9bfa2e91 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Sun, 20 Jan 2013 19:22:42 +0000 Subject: QRegularExpression: fix wrong argument type for pcre_fullinfo The pcre(3) man page says that the 4th argument of pcre_fullinfo, when requesting PCRE_INFO_OPTIONS, should point to an unsigned long int variable. Change-Id: I72cd5ab208687715329566556c5f279db57f7872 Reviewed-by: Richard J. Moore --- src/corelib/tools/qregularexpression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib') diff --git a/src/corelib/tools/qregularexpression.cpp b/src/corelib/tools/qregularexpression.cpp index 862a6c55ed..a18d8af898 100644 --- a/src/corelib/tools/qregularexpression.cpp +++ b/src/corelib/tools/qregularexpression.cpp @@ -975,7 +975,7 @@ void QRegularExpressionPrivate::getPatternInfo() pcre16_fullinfo(compiledPattern, 0, PCRE_INFO_CAPTURECOUNT, &capturingCount); // detect the settings for the newline - int patternNewlineSetting; + unsigned long int patternNewlineSetting; pcre16_fullinfo(compiledPattern, studyData, PCRE_INFO_OPTIONS, &patternNewlineSetting); patternNewlineSetting &= PCRE_NEWLINE_CR | PCRE_NEWLINE_LF | PCRE_NEWLINE_CRLF | PCRE_NEWLINE_ANY | PCRE_NEWLINE_ANYCRLF; -- cgit v1.2.3