Ticket #57751: patch-src_3rdparty_webkit_Source_JavaScriptCore_runtime_StringPrototype_cpp

File patch-src_3rdparty_webkit_Source_JavaScriptCore_runtime_StringPrototype_cpp, 626 bytes (added by devernay (Frédéric Devernay), 5 years ago)
Line 
1--- src/3rdparty/webkit/Source/JavaScriptCore/runtime/StringPrototype.cpp.orig  2019-07-06 02:01:05.000000000 +0200
2+++ src/3rdparty/webkit/Source/JavaScriptCore/runtime/StringPrototype.cpp       2019-07-06 02:01:51.000000000 +0200
3@@ -463,7 +463,7 @@
4     }
5     
6     size_t matchEnd = matchPos + matchLen;
7-    int ovector[2] = { matchPos, matchEnd };
8+    int ovector[2] = { static_cast<int>(matchPos), static_cast<int>(matchEnd) };
9     return JSValue::encode(jsString(exec, source.substringSharingImpl(0, matchPos), substituteBackreferences(replacementString, source, ovector, 0), source.substringSharingImpl(matchEnd)));
10 }
11