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/ustring.cpp

    r14256 r14734  
    5757}
    5858
    59 CString::CString(const char *c, int len)
     59CString::CString(const char *c, size_t len)
    6060{
    6161  length = len;
     
    129129bool operator==(const CString& c1, const CString& c2)
    130130{
    131   int len = c1.size();
     131  size_t len = c1.size();
    132132  return len == c2.size() && (len == 0 || memcmp(c1.c_str(), c2.c_str(), len) == 0);
    133133}
Note: See TracChangeset for help on using the changeset viewer.