mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-23 10:09:54 +00:00
!10158 change int to size_t
Merge pull request !10158 from 贺存茂/codecheck
This commit is contained in:
commit
26808674ff
@ -2432,7 +2432,7 @@ EcmaString *BuiltinsRegExp::EscapeRegExpPattern(JSThread *thread, const JSHandle
|
||||
srcStdStr = "(?:)";
|
||||
}
|
||||
bool escapeChar = false;
|
||||
for (int i = 0; i < srcStdStr.size(); i++) {
|
||||
for (size_t i = 0; i < srcStdStr.size(); i++) {
|
||||
if (srcStdStr[i] == '\\') {
|
||||
escapeChar=!escapeChar;
|
||||
} else if (!escapeChar && srcStdStr[i]=='/') {
|
||||
|
Loading…
Reference in New Issue
Block a user