Bug 120983

Summary: gtest fails to build due to integer type mismatch in WTF::insertIntoBoundedVector()
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: Web Template FrameworkAssignee: David Kilzer (:ddkilzer) <ddkilzer>
Severity: Normal CC: andersca, benjamin, cmarcelo, commit-queue, darin, ddkilzer, fpizlo, mhahnenberg, mitz
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Description Flags
Patch v1 none

Description David Kilzer (:ddkilzer) 2013-09-07 18:02:55 PDT
When gtest builds for the Debug configuration, I see the following error:

WebKitBuild/Debug/usr/local/include/wtf/StdLibExtras.h:266:23: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Werror,-Wshorten-64-to-32]
for (unsigned i = size; i-- > index + 1;)
              ~   ^~~~
1 error generated.
Comment 1 David Kilzer (:ddkilzer) 2013-09-07 18:07:22 PDT
Created attachment 210941 [details]
Patch v1
Comment 2 WebKit Commit Bot 2013-09-07 20:45:23 PDT
Comment on attachment 210941 [details]
Patch v1

Clearing flags on attachment: 210941

Committed r155280: <http://trac.webkit.org/changeset/155280>
Comment 3 WebKit Commit Bot 2013-09-07 20:45:26 PDT
All reviewed patches have been landed.  Closing bug.