Ignore:
Timestamp:
Jun 5, 2006, 9:37:59 AM (19 years ago)
Author:
ggaren
Message:

Reviewed by aliu.

  • Changed CString length from int to size_t. We sould probably do this for UString, too. (Darin, if you're reading this: Maciej said so.)


  • kjs/function.cpp: (KJS::encode):
  • kjs/ustring.cpp: (KJS::CString::CString): (KJS::operator==):
  • kjs/ustring.h: (KJS::CString::size):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/function.cpp

    r14256 r14734  
    570570  CString cstr = str.UTF8String();
    571571  const char *p = cstr.c_str();
    572   for (int k = 0; k < cstr.size(); k++, p++) {
     572  for (size_t k = 0; k < cstr.size(); k++, p++) {
    573573    char c = *p;
    574574    if (c && strchr(do_not_escape, c)) {
Note: See TracChangeset for help on using the changeset viewer.