Ticket #57751: patch-src_3rdparty_webkit_Source_JavaScriptCore_runtime_Identifier_cpp

File patch-src_3rdparty_webkit_Source_JavaScriptCore_runtime_Identifier_cpp, 610 bytes (added by devernay (Frédéric Devernay), 5 years ago)
Line 
1--- src/3rdparty/webkit/Source/JavaScriptCore/runtime/Identifier.cpp~   2015-05-07 16:14:45.000000000 +0200
2+++ src/3rdparty/webkit/Source/JavaScriptCore/runtime/Identifier.cpp    2019-07-06 01:56:36.000000000 +0200
3@@ -222,7 +222,7 @@
4     }
5     if (!length)
6         return StringImpl::empty();
7-    UCharBuffer buf = {s, length};
8+    UCharBuffer buf = {s, static_cast<unsigned int>(length)};
9     pair<HashSet<StringImpl*>::iterator, bool> addResult = globalData->identifierTable->add<UCharBuffer, IdentifierUCharBufferTranslator>(buf);
10 
11     // If the string is newly-translated, then we need to adopt it.