Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Unified Diff: runtime/lib/array.cc

Issue 10869063: Add attributions so printf like functions can have their arguments checked. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebased Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/run_vm_tests.cc ('k') | runtime/lib/byte_array.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « runtime/bin/run_vm_tests.cc ('k') | runtime/lib/byte_array.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698