Bug 134345

Summary: Fix Debug Build Error in Webcore module
Product: WebKit Reporter: Shivakumar J M <shiva.jm>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bunhere, cdumez, commit-queue, d-r, gyuyoung.kim, mmaxfield, mrobinson, sergio, zalan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch-Updated none

Description Shivakumar J M 2014-06-26 03:04:00 PDT
Found Build Error in WebCore/platform/graphics/harfbuzz/HarfBuzzShaper.cpp during webkit-efl port debug build.

from /home/shiva.jm/webkit-git/svngitjun13/WebKit/Source/WebCore/platform/graphics/harfbuzz/HarfBuzzShaper.cpp:31:
/home/shiva.jm/webkit-git/svngitjun13/WebKit/Source/WebCore/platform/graphics/harfbuzz/HarfBuzzShaper.cpp: In member function ‘void WebCore::HarfBuzzShaper::setDrawRange(int, int)’:
/home/shiva.jm/webkit-git/svngitjun13/WebKit/Source/WebCore/platform/graphics/harfbuzz/HarfBuzzShaper.cpp:335:57: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     ASSERT_WITH_SECURITY_IMPLICATION(to <= m_run.length());
                                                         ^
/home/shiva.jm/webkit-git/svngitjun13/WebKit/Source/WTF/wtf/Assertions.h:268:8: note: in definition of macro ‘ASSERT_WITH_SECURITY_IMPLICATION’
     (!(assertion) ? \
        ^
[ 68%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/platform/graphics/texmap/coordinated/AreaAllocator.cpp.o
Comment 1 Shivakumar J M 2014-06-26 03:14:12 PDT
Created attachment 233898 [details]
Patch

Use static cast to change the type of variable to fix error
Comment 2 WebKit Commit Bot 2014-06-26 03:15:27 PDT
Attachment 233898 [details] did not pass style-queue:


ERROR: Source/WebCore/ChangeLog:8:  You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible.  [changelog/nonewtests] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Shivakumar J M 2014-06-26 03:24:47 PDT
Created attachment 233900 [details]
Patch-Updated

Updated the patch since no tests are needed
Comment 4 zalan 2014-06-26 07:29:16 PDT
Comment on attachment 233900 [details]
Patch-Updated

I'd rather have both 'from' and 'to' unsigned, but this is good for now to get the build fixed.
Comment 5 WebKit Commit Bot 2014-06-26 08:00:45 PDT
Comment on attachment 233900 [details]
Patch-Updated

Clearing flags on attachment: 233900

Committed r170479: <http://trac.webkit.org/changeset/170479>
Comment 6 WebKit Commit Bot 2014-06-26 08:00:51 PDT
All reviewed patches have been landed.  Closing bug.