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

Unified Diff: runtime/vm/ast_transformer.cc

Issue 478423002: Fix broken build due to integer formatting. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast_transformer.cc
diff --git a/runtime/vm/ast_transformer.cc b/runtime/vm/ast_transformer.cc
index 2a9ae4a9efa6ea4bb536bfeb94f9867a5b657294..c8849595ad63e8e001d6f7a9c100354c6b13a070 100644
--- a/runtime/vm/ast_transformer.cc
+++ b/runtime/vm/ast_transformer.cc
@@ -49,9 +49,8 @@ AstNode* AwaitTransformer::Transform(AstNode* expr) {
LocalVariable* AwaitTransformer::EnsureCurrentTempVar() {
const char* await_temp_prefix = ":await_temp_var_";
- const String& cnt_str = String::ZoneHandle(I,
- String::NewFormatted(
- "%s%" Pd "", await_temp_prefix, temp_cnt_));
+ const String& cnt_str = String::ZoneHandle(
+ I, String::NewFormatted("%s%d", await_temp_prefix, temp_cnt_));
const String& symbol = String::ZoneHandle(I, Symbols::New(cnt_str));
ASSERT(!symbol.IsNull());
LocalVariable* await_tmp =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698