Title: [240758] trunk/Tools
Revision
240758
Author
[email protected]
Date
2019-01-30 20:49:57 -0800 (Wed, 30 Jan 2019)

Log Message

Use correct printf format specifier
https://bugs.webkit.org/show_bug.cgi?id=194062
<rdar://problem/47686167>

Reviewed by Alexey Proskuryakov.

LayoutTestSpellChecker.mm is trying to format a variable of type
NSTextCheckingType with %tu (unsigned ptrdiff_t), when the type is
actually an unsigned long long. Fix this by formatting with %llu.

* TestRunnerShared/cocoa/LayoutTestSpellChecker.mm:
(-[LayoutTestTextCheckingResult description]):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (240757 => 240758)


--- trunk/Tools/ChangeLog	2019-01-31 04:41:35 UTC (rev 240757)
+++ trunk/Tools/ChangeLog	2019-01-31 04:49:57 UTC (rev 240758)
@@ -1,3 +1,18 @@
+2019-01-30  Keith Rollin  <[email protected]>
+
+        Use correct printf format specifier
+        https://bugs.webkit.org/show_bug.cgi?id=194062
+        <rdar://problem/47686167>
+
+        Reviewed by Alexey Proskuryakov.
+
+        LayoutTestSpellChecker.mm is trying to format a variable of type
+        NSTextCheckingType with %tu (unsigned ptrdiff_t), when the type is
+        actually an unsigned long long. Fix this by formatting with %llu.
+
+        * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm:
+        (-[LayoutTestTextCheckingResult description]):
+
 2019-01-30  Ryosuke Niwa  <[email protected]>
 
         REGRESSION(r240541): WebKit.WebsitePoliciesCustomJavaScriptUserAgent is failing since introduction on iOS

Modified: trunk/Tools/TestRunnerShared/cocoa/LayoutTestSpellChecker.mm (240757 => 240758)


--- trunk/Tools/TestRunnerShared/cocoa/LayoutTestSpellChecker.mm	2019-01-31 04:41:35 UTC (rev 240757)
+++ trunk/Tools/TestRunnerShared/cocoa/LayoutTestSpellChecker.mm	2019-01-31 04:49:57 UTC (rev 240758)
@@ -162,7 +162,7 @@
 
 - (NSString *)description
 {
-    return [NSString stringWithFormat:@"<%@ %p type=%tu range=[%tu, %tu] replacement='%@'>", self.class, self, _type, _range.location, _range.location + _range.length, _replacement.get()];
+    return [NSString stringWithFormat:@"<%@ %p type=%llu range=[%tu, %tu] replacement='%@'>", self.class, self, _type, _range.location, _range.location + _range.length, _replacement.get()];
 }
 
 @end
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to