diff --git a/src/heap.cc b/src/heap.cc index 8c39c9180c..47b259ed9b 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -3326,7 +3326,7 @@ MaybeObject* Heap::AllocateExternalStringFromAscii( return Failure::OutOfMemoryException(); } - ASSERT(String::IsAscii(resource->data(), length)); + ASSERT(String::IsAscii(resource->data(), static_cast(length))); Map* map = external_ascii_string_map(); Object* result;