From fcf27fd15e0f83dd294266dba306bdc6c6488bb0 Mon Sep 17 00:00:00 2001 From: Hongze Zhang Date: Thu, 14 Dec 2023 20:22:29 +0800 Subject: [PATCH] fixup --- velox/functions/lib/Re2Functions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/velox/functions/lib/Re2Functions.cpp b/velox/functions/lib/Re2Functions.cpp index a92a39cc7959..41bcbb700505 100644 --- a/velox/functions/lib/Re2Functions.cpp +++ b/velox/functions/lib/Re2Functions.cpp @@ -1133,12 +1133,12 @@ PatternMetadata determinePatternKind( const size_t patternLength = pattern.size(); // Index of the first % or _ character(not escaped). - size_t wildcardStart = -1; + int32_t wildcardStart = -1; // Index of the first character that is not % and not _. - size_t fixedPatternStart = -1; + int32_t fixedPatternStart = -1; // Index of the last character in the fixed pattern, used to retrieve the // fixed string for patterns of type kSubstring. - size_t fixedPatternEnd = -1; + int32_t fixedPatternEnd = -1; // Count of wildcard character sequences in pattern. size_t numWildcardSequences = 0; // Total number of % characters.