Bug 225642

Summary: Fix compile warning in non-CG platforms after r277232
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: aperez, ggaren, lmoura, mmaxfield, simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=225335
Attachments:
Description Flags
Patch none

Description Carlos Garcia Campos 2021-05-11 01:24:10 PDT
In file included from WebCore/PrivateHeaders/WebCore/Font.h:30,                                                                                                                                                    
                 from WebCore/PrivateHeaders/WebCore/FontCascade.h:28,                                                                                                                                             
                 from WebCore/PrivateHeaders/WebCore/GraphicsContext.h:32,                                                                                                                                         
                 from WebCore/PrivateHeaders/WebCore/FrameView.h:31,                                                                                                                                               
                 from ../../Source/WebKit/WebProcess/InjectedBundle/API/glib/WebKitWebPage.cpp:56:                                                                                                                 
WebCore/PrivateHeaders/WebCore/GlyphBuffer.h: In member function ‘WTF::Optional<unsigned int> WebCore::GlyphBuffer::checkedStringOffsetAt(unsigned int, unsigned int) const’:                                      
WebCore/PrivateHeaders/WebCore/GlyphBuffer.h:81:20: warning: comparison of unsigned expression in ‘< 0’ is always false [-Wtype-limits]                                                                            
   81 |         if (result < 0 || static_cast<unsigned>(result) >= stringLength)                                                                                                                                   
      |
Comment 1 Carlos Garcia Campos 2021-05-11 01:25:35 PDT
Created attachment 428255 [details]
Patch
Comment 2 EWS 2021-05-13 01:08:30 PDT
Tools/Scripts/svn-apply failed to apply attachment 428255 [details] to trunk.
Please resolve the conflicts and upload a new patch.
Comment 3 Carlos Garcia Campos 2021-05-13 01:26:36 PDT
Darin fixed this in r277355