summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorPatrick Scott <phanna@android.com>2009-06-30 14:36:18 -0400
committerPatrick Scott <phanna@android.com>2009-06-30 14:36:18 -0400
commit7ba1b9e1a023eac627eab4d7b3d29bf4c4c5370b (patch)
treed58f2500e45d2344a3e6857ef5f59d0cd82ed75c /WebCore
parent40f0a966ecdad09ba8565aa2c1970ac4b72452c7 (diff)
downloadexternal_webkit-7ba1b9e1a023eac627eab4d7b3d29bf4c4c5370b.zip
external_webkit-7ba1b9e1a023eac627eab4d7b3d29bf4c4c5370b.tar.gz
external_webkit-7ba1b9e1a023eac627eab4d7b3d29bf4c4c5370b.tar.bz2
Do not merge
Use 2 * aLength as Grace pointed out characters() returns UChar*.
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/text/StringHash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/platform/text/StringHash.h b/WebCore/platform/text/StringHash.h
index 4ab53ad..f33638e 100644
--- a/WebCore/platform/text/StringHash.h
+++ b/WebCore/platform/text/StringHash.h
@@ -48,7 +48,7 @@ namespace WebCore {
return false;
#if PLATFORM(ARM)
- return memcmp(a->characters(), b->characters(), aLength) == 0;
+ return memcmp(a->characters(), b->characters(), sizeof(UChar) * aLength) == 0;
#else
const uint32_t* aChars = reinterpret_cast<const uint32_t*>(a->characters());
const uint32_t* bChars = reinterpret_cast<const uint32_t*>(b->characters());