Fix WTF::copyLCharsFromUCharSource() to compile with -Wshorten-64-to-32
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Jan 2013 17:26:03 +0000 (17:26 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Jan 2013 17:26:03 +0000 (17:26 +0000)
commitf8b5311408dd0b6f14300ac2b22b7e9a5a4987fe
tree3a40447959c7b3c9168ae11514c2d1067adaf8da
parent49a1833ce9843e9f7c66607b95202aa284a295ea
Fix WTF::copyLCharsFromUCharSource() to compile with -Wshorten-64-to-32
<http://webkit.org/b/107227>

Reviewed by Benjamin Poulain.

Fixes the following build error:

    ASCIIFastPath.h:117:59: error: implicit conversion loses integer precision: 'unsigned long' to 'const unsigned int' [-Werror,-Wshorten-64-to-32]
            const unsigned endLength = length - ucharsPerLoop + 1;
                           ~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~^~~
    1 error generated.

* wtf/text/ASCIIFastPath.h:
(WTF::copyLCharsFromUCharSource): Change local variables from
unsigned to size_t.

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