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

Unified Diff: runtime/vm/simulator_arm.cc

Issue 18295007: Fixes bug in double to int conversion on arm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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/vm/intermediate_language_arm.cc ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/simulator_arm.cc
===================================================================
--- runtime/vm/simulator_arm.cc (revision 24950)
+++ runtime/vm/simulator_arm.cc (working copy)
@@ -2827,6 +2827,8 @@
id_val = INT_MIN;
} else if (dm_val >= INT_MAX) {
id_val = INT_MAX;
+ } else if (isnan(dm_val)) {
+ id_val = 0;
} else {
id_val = static_cast<int32_t>(dm_val);
}
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698