Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index d0f90818d6460ca04330746ac3ab2c7b519d1943..90bbaf32d66787bacaa45fb494224479249eaeed 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -4233,7 +4233,7 @@ static int CopyCachedAsciiCharsToArray(const char* chars, |
} |
if (i < length) { |
ASSERT(Smi::FromInt(0) == 0); |
- memset(elements->data_start() + i, 0, length - i); |
+ memset(elements->data_start() + i, 0, kPointerSize * (length - i)); |
} |
#ifdef DEBUG |
for (int j = 0; j < length; ++j) { |