From 580eb245469f80f43788f67245136241b99d6215 Mon Sep 17 00:00:00 2001 From: Vincent Herbet Date: Sun, 27 Jul 2014 13:48:05 +0200 Subject: [PATCH] Fix compilation warning. --- dlls/regex/CRegEx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/regex/CRegEx.cpp b/dlls/regex/CRegEx.cpp index 57b0ad38..47dab64a 100755 --- a/dlls/regex/CRegEx.cpp +++ b/dlls/regex/CRegEx.cpp @@ -705,12 +705,12 @@ int RegEx::Replace(char *text, size_t textMaxLen, const char *replace, size_t re * We can't provide a capture number >= to total that pcre_exec has found. * 0 is implicitly accepted, same behavior as $&. */ - if (backref >= 0 && (int)backref < mNumSubpatterns) + if (backref >= 0 && backref < mNumSubpatterns) { /** * Valid available index for a given match. */ - if (backref < mMatchesSubs.at(i)) + if ((size_t)backref < mMatchesSubs.at(i)) { /** * Concatenate retrieved sub-string.