Index: runtime/lib/array.cc |
diff --git a/runtime/lib/array.cc b/runtime/lib/array.cc |
index 704d68167fb5cddcfc5527bf9f09f73dfa0a4092..c8187c4b18fa067af892a4fe524b07eea8948c50 100644 |
--- a/runtime/lib/array.cc |
+++ b/runtime/lib/array.cc |
@@ -21,7 +21,7 @@ DEFINE_NATIVE_ENTRY(ObjectArray_allocate, 2) { |
intptr_t len = length.Value(); |
if (len < 0 || len > Array::kMaxElements) { |
const String& error = String::Handle(String::NewFormatted( |
- "length (%ld) must be in the range [0..%ld]", |
+ "length (%"Pd") must be in the range [0..%"Pd"]", |
len, Array::kMaxElements)); |
GrowableArray<const Object*> args; |
args.Add(&error); |