Changeset 69277 in webkit for trunk/JavaScriptCore/wtf/MD5.cpp


Ignore:
Timestamp:
Oct 6, 2010, 11:57:06 PM (15 years ago)
Author:
[email protected]
Message:

2010-10-06 Chris Evans <[email protected]>

Reviewed by David Levin.

https://bugs.webkit.org/show_bug.cgi?id=47248

Use size_t consistently in CString, to prevent theoretical trouble
with > 4GB strings on 64-bit platforms.

  • wtf/text/CString.h:
  • wtf/text/CString.cpp: Use size_t for string lengths.
  • wtf/MD5.cpp: (WTF::expectMD5): use suitable format string + cast for size_t.
  • JavaScriptCore.exp: Update symbol name.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/MD5.cpp

    r65311 r69277  
    7777        buf += 2;
    7878    }
    79     ASSERT_WITH_MESSAGE(actual == expected, "input:%s[%d] actual:%s expected:%s", input.data(), input.length(), actual.data(), expected.data());
     79    ASSERT_WITH_MESSAGE(actual == expected, "input:%s[%lu] actual:%s expected:%s", input.data(), static_cast<unsigned long>(input.length()), actual.data(), expected.data());
    8080}
    8181
Note: See TracChangeset for help on using the changeset viewer.