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

Unified Diff: runtime/bin/builtin_natives.cc

Issue 25401004: Use int for size when printing to stdout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « no previous file | tests/standalone/io/print_sync_script.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin_natives.cc
diff --git a/runtime/bin/builtin_natives.cc b/runtime/bin/builtin_natives.cc
index 80844970dfdce2206c604a829b1ab45166994337..47dd211cd573e5af5cc1f5032c160851027cdc23 100644
--- a/runtime/bin/builtin_natives.cc
+++ b/runtime/bin/builtin_natives.cc
@@ -111,7 +111,7 @@ void FUNCTION_NAME(Logger_PrintString)(Dart_NativeArguments args) {
// interrupt.
Platform::PrintBlocking(stdout, "%s\n", Dart_GetError(result));
} else {
- Platform::PrintBlocking(stdout, "%.*s\n", length, chars);
+ Platform::PrintBlocking(stdout, "%.*s\n", static_cast<int>(length), chars);
}
}
« no previous file with comments | « no previous file | tests/standalone/io/print_sync_script.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698