Title: [279972] trunk/Source/WTF
Revision
279972
Author
jh718.p...@samsung.com
Date
2021-07-15 18:25:20 -0700 (Thu, 15 Jul 2021)

Log Message

Unreviewed. Fix the build warning below since r279895.
warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]

* wtf/URL.cpp:
(WTF::URL::setPath):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (279971 => 279972)


--- trunk/Source/WTF/ChangeLog	2021-07-16 00:36:39 UTC (rev 279971)
+++ trunk/Source/WTF/ChangeLog	2021-07-16 01:25:20 UTC (rev 279972)
@@ -1,3 +1,11 @@
+2021-07-15  Joonghun Park  <jh718.p...@samsung.com>
+
+        Unreviewed. Fix the build warning below since r279895.
+        warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
+
+        * wtf/URL.cpp:
+        (WTF::URL::setPath):
+
 2021-07-15  Chris Dumez  <cdu...@apple.com>
 
         Add initial support for BroadcastChannel behind a runtime flag

Modified: trunk/Source/WTF/wtf/URL.cpp (279971 => 279972)


--- trunk/Source/WTF/wtf/URL.cpp	2021-07-16 00:36:39 UTC (rev 279971)
+++ trunk/Source/WTF/wtf/URL.cpp	2021-07-16 01:25:20 UTC (rev 279972)
@@ -682,7 +682,7 @@
 
     parse(makeString(
         StringView(m_string).left(pathStart()),
-        path.startsWith('/') || (path.startsWith('\\') && (hasSpecialScheme() || protocolIs("file"))) || (!hasSpecialScheme() && path.isEmpty() && m_schemeEnd + 1 < pathStart()) ? "" : "/",
+        path.startsWith('/') || (path.startsWith('\\') && (hasSpecialScheme() || protocolIs("file"))) || (!hasSpecialScheme() && path.isEmpty() && m_schemeEnd + 1U < pathStart()) ? "" : "/",
         !hasSpecialScheme() && host().isEmpty() && path.startsWith("//") && path.length() > 2 ? "/." : "",
         escapePathWithoutCopying(path),
         StringView(m_string).substring(m_pathEnd)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to