gtest fails to build due to integer type mismatch in WTF::insertIntoBoundedVector()
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 8 Sep 2013 03:46:22 +0000 (03:46 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 8 Sep 2013 03:46:22 +0000 (03:46 +0000)
commit6d68e0fda0ece3852dfafaacba0a9073a689c636
treeaa80ce167575d0fb5487160496556af380ede186
parentfc397e7ffe676abe4a973055f49845b7b704b05f
gtest fails to build due to integer type mismatch in WTF::insertIntoBoundedVector()
<http://webkit.org/b/120983>

Reviewed by Dan Bernstein.

Fixes the following build failure:

    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;)
                  ~   ^~~~

* wtf/StdLibExtras.h:
(WTF::insertIntoBoundedVector): Use size_t instead of unsigned
as for loop index variable.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@155280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/StdLibExtras.h