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

Unified Diff: pkg/analyzer_experimental/lib/src/generated/constant.dart

Issue 16103010: Fixes for translator and DDA status files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
Index: pkg/analyzer_experimental/lib/src/generated/constant.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/constant.dart b/pkg/analyzer_experimental/lib/src/generated/constant.dart
index 9ff784526da035b286098bb8bb9813e03e689045..41d94c95db27b6fe6edb42ec7f1f9d98e323732d 100644
--- a/pkg/analyzer_experimental/lib/src/generated/constant.dart
+++ b/pkg/analyzer_experimental/lib/src/generated/constant.dart
@@ -1294,15 +1294,15 @@ class ValidResult extends EvaluationResultImpl {
return valueOf(((leftValue as int)) ~/ (_value as int));
} else if (_value is double) {
double result = ((leftValue as int)).toDouble() / ((_value as double));
- return valueOf((result as int));
+ return valueOf(result.toInt());
}
} else if (leftValue is double) {
if (_value is int) {
double result = ((leftValue as double)) / ((_value as int)).toDouble();
- return valueOf((result as int));
+ return valueOf(result.toInt());
} else if (_value is double) {
double result = ((leftValue as double)) / ((_value as double));
- return valueOf((result as int));
+ return valueOf(result.toInt());
}
}
return error(node);
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/ast.dart ('k') | pkg/analyzer_experimental/lib/src/generated/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698