Changeset 140162 in webkit
- Timestamp:
- Jan 18, 2013 9:26:03 AM (11 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r140111 r140162 1 2013-01-18 David Kilzer <ddkilzer@apple.com> 2 3 Fix WTF::copyLCharsFromUCharSource() to compile with -Wshorten-64-to-32 4 <http://webkit.org/b/107227> 5 6 Reviewed by Benjamin Poulain. 7 8 Fixes the following build error: 9 10 ASCIIFastPath.h:117:59: error: implicit conversion loses integer precision: 'unsigned long' to 'const unsigned int' [-Werror,-Wshorten-64-to-32] 11 const unsigned endLength = length - ucharsPerLoop + 1; 12 ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~ 13 1 error generated. 14 15 * wtf/text/ASCIIFastPath.h: 16 (WTF::copyLCharsFromUCharSource): Change local variables from 17 unsigned to size_t. 18 1 19 2013-01-14 Dominik Röttsches <dominik.rottsches@intel.com> 2 20 -
trunk/Source/WTF/wtf/text/ASCIIFastPath.h
r134514 r140162 113 113 114 114 const uintptr_t sourceLoadSize = 32; // Process 32 bytes (16 UChars) each iteration 115 const unsigneducharsPerLoop = sourceLoadSize / sizeof(UChar);115 const size_t ucharsPerLoop = sourceLoadSize / sizeof(UChar); 116 116 if (length > ucharsPerLoop) { 117 const unsignedendLength = length - ucharsPerLoop + 1;117 const size_t endLength = length - ucharsPerLoop + 1; 118 118 for (; i < endLength; i += ucharsPerLoop) { 119 119 #ifndef NDEBUG
Note: See TracChangeset
for help on using the changeset viewer.