Changeset 17372 in webkit for trunk/JavaScriptCore/kjs/date_object.cpp
- Timestamp:
- Oct 27, 2006, 9:48:28 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/date_object.cpp
r17258 r17372 174 174 const int bufsize=128; 175 175 char timebuffer[bufsize]; 176 int ret = strftime(timebuffer, bufsize, formatStrings[format], &localTM);176 size_t ret = strftime(timebuffer, bufsize, formatStrings[format], &localTM); 177 177 178 178 if ( ret == 0 ) … … 453 453 UString s; 454 454 #if !PLATFORM(DARWIN) 455 const int bufsize=100;456 char timebuffer[bufsize];457 455 CString oldlocale = setlocale(LC_TIME, 0); 458 456 if (!oldlocale.size()) … … 793 791 if (!*monthStr) 794 792 return -1; 795 needle[i] = tolower(*monthStr++);793 needle[i] = static_cast<char>(tolower(*monthStr++)); 796 794 } 797 795 needle[3] = '\0'; … … 799 797 const char *str = strstr(haystack, needle); 800 798 if (str) { 801 int position = st r - haystack;799 int position = static_cast<int>(str - haystack); 802 800 if (position % 3 == 0) 803 801 return position / 3;
Note:
See TracChangeset
for help on using the changeset viewer.